public class PolishWordTokenizer extends WordTokenizer
Constructor and Description |
---|
PolishWordTokenizer() |
Modifier and Type | Method and Description |
---|---|
void |
setTagger(Tagger tagger)
Set the tagger to use in tokenizing.
|
List<String> |
tokenize(String text)
Tokenizes text.
|
getProtocols, getTokenizingCharacters, isEMail, isUrl, joinEMails, joinEMailsAndUrls, joinUrls
public List<String> tokenize(String text)
tokenize
in interface Tokenizer
tokenize
in class WordTokenizer
text
- String of words to tokenize.public void setTagger(Tagger tagger)
tagger
- The tagger to use (compatible only with the
Polish BaseTagger
that uses the delivered PoliMorfologik 2.1
or later).