Interface Dictionary
-
- All Known Implementing Classes:
BinaryDictionary,TokenInfoDictionary,UnknownDictionary,UserDictionary
public interface DictionaryDictionary interface for retrieving morphological data by id.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDictionary.MorphemeA morpheme extracted from a compound token.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetLeftId(int wordId)Get left id of specified wordPOS.TaggetLeftPOS(int wordId)Get the leftPOS.Tagof specfied word.Dictionary.Morpheme[]getMorphemes(int wordId, char[] surfaceForm, int off, int len)Get the morphemes of specified word (e.g.POS.TypegetPOSType(int wordId)Get thePOS.Typeof specified word (morpheme, compound, inflect or pre-analysis)StringgetReading(int wordId)Get the reading of specified word (mainly used for Hanja to Hangul conversion).intgetRightId(int wordId)Get right id of specified wordPOS.TaggetRightPOS(int wordId)Get the rightPOS.Tagof specfied word.intgetWordCost(int wordId)Get word cost of specified word
-
-
-
Method Detail
-
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
POS.Type getPOSType(int wordId)
Get thePOS.Typeof specified word (morpheme, compound, inflect or pre-analysis)
-
getLeftPOS
POS.Tag getLeftPOS(int wordId)
Get the leftPOS.Tagof specfied word.For
POS.Type.MORPHEMEandPOS.Type.COMPOUNDthe left and right POS are the same.
-
getRightPOS
POS.Tag getRightPOS(int wordId)
Get the rightPOS.Tagof specfied word.For
POS.Type.MORPHEMEandPOS.Type.COMPOUNDthe left and right POS are the same.
-
getReading
String getReading(int wordId)
Get the reading of specified word (mainly used for Hanja to Hangul conversion).
-
getMorphemes
Dictionary.Morpheme[] getMorphemes(int wordId, char[] surfaceForm, int off, int len)
Get the morphemes of specified word (e.g. 가깝으나: 가깝 + 으나).
-
-