public class LexicalEntry extends Object
| Constructor and Description |
|---|
LexicalEntry(String[] wds,
FeatureSet fs)
creates a lexical entry for the sequence of words wds and
makes fs one definition of this sequence.
|
LexicalEntry(String[] wds,
FeatureSet fs,
String type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDefinition(FeatureSet fs)
adds fs as an additional definition for this lexical entry
|
FeatureSet[] |
getDefinition()
returns the definitions for the lexical entry
|
int |
matches(Document doc,
int posn)
determines whether the lexical entry matches the tokens in
Document doc, starting at position posn.
|
boolean |
matches(String[] wds)
determines whether the lexical entry matches the sequence of
tokens wds.
|
public LexicalEntry(String[] wds, FeatureSet fs)
public LexicalEntry(String[] wds, FeatureSet fs, String type)
public void addDefinition(FeatureSet fs)
public FeatureSet[] getDefinition()
public boolean matches(String[] wds)
public int matches(Document doc, int posn)
Copyright © 2016 New York University. All rights reserved.