Package org.languagetool.tagging
Class MorfologikTagger
java.lang.Object
org.languagetool.tagging.MorfologikTagger
- All Implemented Interfaces:
WordTagger
Tags a word using a Morfologik binary dictionary.
- Since:
- 2.8
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMorfologikTagger(String dictPath) MorfologikTagger(URL dictUrl) MorfologikTagger(morfologik.stemming.Dictionary dictionary) Constructs a MorfologikTagger with the given morfologik dictionary. -
Method Summary
Modifier and TypeMethodDescriptionprivate morfologik.stemming.Dictionary
-
Field Details
-
dictUrl
-
dictionary
private morfologik.stemming.Dictionary dictionary
-
-
Constructor Details
-
MorfologikTagger
-
MorfologikTagger
MorfologikTagger(URL dictUrl) -
MorfologikTagger
public MorfologikTagger(morfologik.stemming.Dictionary dictionary) Constructs a MorfologikTagger with the given morfologik dictionary.- Since:
- 3.4
-
-
Method Details
-
getDictionary
- Throws:
IOException
-
tag
- Specified by:
tagin interfaceWordTagger- Parameters:
word- the word to be tagged- Returns:
- the possible POS tags, or an empty list
-