Package org.apache.lucene.analysis.morph
Interface Dictionary<T extends MorphData>
- All Known Implementing Classes:
BinaryDictionary
public interface Dictionary<T extends MorphData>
High-level dictionary interface for morphological analyzers.
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
getLeftId
(int morphId) Get left id of specified worddefault int
getRightId
(int morphId) Get right id of specified worddefault int
getWordCost
(int morphId) Get word cost of specified word
-
Method Details
-
getLeftId
default int getLeftId(int morphId) Get left id of specified word- Returns:
- left id
-
getRightId
default int getRightId(int morphId) Get right id of specified word- Returns:
- right id
-
getWordCost
default int getWordCost(int morphId) Get word cost of specified word- Returns:
- word's cost
-
getMorphAttributes
T getMorphAttributes()
-