public interface Featurizer
| Modifier and Type | Method and Description |
|---|---|
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
|
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.Copyright © 2012–2017 CoGrOO. All rights reserved.