opennlp.grok.preprocess.mwe
Class VariableMWEModelReader

java.lang.Object
  |
  +--opennlp.grok.preprocess.mwe.VariableMWEModelReader

public class VariableMWEModelReader
extends java.lang.Object

A reads a model holding the Fixed Lexicon Multi-Word Expressions.

The model should consist of line containing the MWE which should be expressions which do not change in any way in English (e.g. "ad hoc").

Anything after a '#' character is a comment. Lines are trimmed of whitespace at their beginning and end.

Version:
$Revision: 1.1 $, $Date: 2002/03/12 12:51:20 $
Author:
Mike Atkinson

Field Summary
static int ADJECTIVE
           
static int ADVERB
           
static int NOUN
           
static int VERB
           
 
Constructor Summary
VariableMWEModelReader(java.io.Reader reader, int type)
          Constructor for the MWEModelReader object
 
Method Summary
 void addData(java.io.Reader reader, int type)
          Add more data to the model
 MWEModel getModel()
          Gets the Model which the MWEModelReader has read from store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOUN

public static final int NOUN
See Also:
Constant Field Values

ADVERB

public static final int ADVERB
See Also:
Constant Field Values

ADJECTIVE

public static final int ADJECTIVE
See Also:
Constant Field Values

VERB

public static final int VERB
See Also:
Constant Field Values
Constructor Detail

VariableMWEModelReader

public VariableMWEModelReader(java.io.Reader reader,
                              int type)
Constructor for the MWEModelReader object

Parameters:
reader - Source of the model data.
Method Detail

addData

public void addData(java.io.Reader reader,
                    int type)
Add more data to the model

Parameters:
reader - Source of the model data.

getModel

public MWEModel getModel()
Gets the Model which the MWEModelReader has read from store.

Returns:
The Model value


Copyright © 2003 Jason Baldridge and Gann Bierner. All Rights Reserved.