|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Chunker
The interface for chunkers which provide chunk tags for a sequence of tokens.
| Method Summary | |
|---|---|
List<String> |
chunk(List<String> toks,
List<String> tags)
Deprecated. please use chunk(String[], String[]) instead. |
String[] |
chunk(String[] toks,
String[] tags)
Generates chunk tags for the given sequence returning the result in an array. |
Sequence[] |
topKSequences(List<String> sentence,
List<String> tags)
Returns the top k chunk sequences for the specified sentence with the specified pos-tags |
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 |
|---|
@Deprecated
List<String> chunk(List<String> toks,
List<String> tags)
chunk(String[], String[]) instead.
toks - a list of the tokens or words of the sequence.tags - a list of the pos tags of the sequence.
String[] chunk(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.
Sequence[] topKSequences(List<String> sentence,
List<String> tags)
sentence - The tokens of the sentence.tags - The pos-tags for the specified sentence.
Sequence[] topKSequences(String[] sentence,
String[] tags,
double minSequenceScore)
sentence - The tokens of the sentence.tags - The pos-tags for the specified sentence.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||