Package org.dizitart.no2.index.fulltext
Interface TextTokenizer
- All Known Implementing Classes:
BaseTextTokenizer,EnglishTextTokenizer,UniversalTextTokenizer
public interface TextTokenizer
An abstract class representing a stop-word based text tokenizer.
- Since:
- 1.0
- Author:
- Anindya Chatterjee.
- See Also:
-
Method Summary
-
Method Details
-
getLanguage
Languages getLanguage()Gets the language for the tokenizer.- Returns:
- the language for this tokenizer.
-
tokenize
Tokenize atextand discards all stop-words from it.- Parameters:
text- the text to tokenize- Returns:
- the set of tokens.
-
stopWords
Gets all stop-words for a language.- Returns:
- the set of all stop-words.
-