public interface Dictionary
Modifier and Type | Interface and Description |
---|---|
static class |
Dictionary.Morpheme
A morpheme extracted from a compound token.
|
Modifier and Type | Method and Description |
---|---|
int |
getLeftId(int wordId)
Get left id of specified word
|
POS.Tag |
getLeftPOS(int wordId)
Get the left
POS.Tag of specfied word. |
Dictionary.Morpheme[] |
getMorphemes(int wordId,
char[] surfaceForm,
int off,
int len)
Get the morphemes of specified word (e.g.
|
POS.Type |
getPOSType(int wordId)
Get the
POS.Type of specified word (morpheme, compound, inflect or pre-analysis) |
String |
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 word
|
POS.Tag |
getRightPOS(int wordId)
Get the right
POS.Tag of specfied word. |
int |
getWordCost(int wordId)
Get word cost of specified word
|
int getLeftId(int wordId)
int getRightId(int wordId)
int getWordCost(int wordId)
POS.Type getPOSType(int wordId)
POS.Type
of specified word (morpheme, compound, inflect or pre-analysis)POS.Tag getLeftPOS(int wordId)
POS.Tag
of specfied word.
For POS.Type.MORPHEME
and POS.Type.COMPOUND
the left and right POS are the same.POS.Tag getRightPOS(int wordId)
POS.Tag
of specfied word.
For POS.Type.MORPHEME
and POS.Type.COMPOUND
the left and right POS are the same.String getReading(int wordId)
Dictionary.Morpheme[] getMorphemes(int wordId, char[] surfaceForm, int off, int len)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.