public interface Tokenizer
Modifier and Type | Interface and Description |
---|---|
static class |
Tokenizer.Tokenization |
Modifier and Type | Method and Description |
---|---|
Pair<String[],IntPair[]> |
tokenizeSentence(String sentence)
given a sentence, return a set of tokens and their character offsets
|
Tokenizer.Tokenization |
tokenizeTextSpan(String textSpan)
given a span of text, return a list of Pair< String[], IntPair[] > corresponding
to tokenized sentences, where the String[] is the ordered list of sentence tokens and the
IntPair[] is the corresponding list of character offsets with respect to the original
text.
|
Pair<String[],IntPair[]> tokenizeSentence(String sentence)
sentence
- The sentence stringPair
containing the array of tokens and their character offsetsTokenizer.Tokenization tokenizeTextSpan(String textSpan)
Copyright © 2017. All rights reserved.