|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Featurizer
The interface for featurizers which provide feature annotation for a sequence of tokens.
Method Summary | |
---|---|
String[] |
featurize(String[] toks,
String[] tags)
Generates chunk tags for the given sequence returning the result in an array. |
opennlp.tools.util.Sequence[] |
topKSequences(String[] sentence,
String[] tags)
Returns the top k chunk sequences for the specified sentence with the specified pos-tags |
opennlp.tools.util.Sequence[] |
topKSequences(String[] sentence,
String[] tags,
double minSequenceScore)
Returns the top k chunk sequences for the specified sentence with the specified pos-tags |
Method Detail |
---|
String[] featurize(String[] toks, String[] tags)
toks
- an array of the tokens or words of the sequence.tags
- an array of the pos tags of the sequence.
opennlp.tools.util.Sequence[] topKSequences(String[] sentence, String[] tags)
sentence
- The tokens of the sentence.tags
- The pos-tags for the specified sentence.
opennlp.tools.util.Sequence[] topKSequences(String[] sentence, String[] tags, double minSequenceScore)
sentence
- The tokens of the sentence.tags
- The pos-tags for the specified sentence.minSequenceScore
- A lower bound on the score of a returned sequence.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |