Interface Dictionary
- All Known Implementing Classes:
BinaryDictionary
,TokenInfoDictionary
,UnknownDictionary
,UserDictionary
public interface Dictionary
Dictionary interface for retrieving morphological data by id.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A morpheme extracted from a compound token. -
Method Summary
Modifier and TypeMethodDescriptionint
getLeftId
(int wordId) Get left id of specified wordgetLeftPOS
(int wordId) Get the leftPOS.Tag
of specfied word.getMorphemes
(int wordId, char[] surfaceForm, int off, int len) Get the morphemes of specified word (e.g.getPOSType
(int wordId) Get thePOS.Type
of specified word (morpheme, compound, inflect or pre-analysis)getReading
(int wordId) Get the reading of specified word (mainly used for Hanja to Hangul conversion).int
getRightId
(int wordId) Get right id of specified wordgetRightPOS
(int wordId) Get the rightPOS.Tag
of specfied word.int
getWordCost
(int wordId) Get word cost of specified word
-
Method Details
-
getLeftId
int getLeftId(int wordId) Get left id of specified word -
getRightId
int getRightId(int wordId) Get right id of specified word -
getWordCost
int getWordCost(int wordId) Get word cost of specified word -
getPOSType
Get thePOS.Type
of specified word (morpheme, compound, inflect or pre-analysis) -
getLeftPOS
Get the leftPOS.Tag
of specfied word.For
POS.Type.MORPHEME
andPOS.Type.COMPOUND
the left and right POS are the same. -
getRightPOS
Get the rightPOS.Tag
of specfied word.For
POS.Type.MORPHEME
andPOS.Type.COMPOUND
the left and right POS are the same. -
getReading
Get the reading of specified word (mainly used for Hanja to Hangul conversion). -
getMorphemes
Get the morphemes of specified word (e.g. 가깝으나: 가깝 + 으나).
-