TokenInfoMorphData

open class TokenInfoMorphData(buffer: ByteBuffer, posResource: IOSupplier<InputStream>) : KoMorphData

Morphological information for system dictionary.

Inheritors

Constructors

Link copied to clipboard
constructor(buffer: ByteBuffer, posResource: IOSupplier<InputStream>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun getLeftId(morphId: Int): Int
Link copied to clipboard
open override fun getLeftPOS(morphId: Int): POS.Tag

Get the left POS.Tag of specified word.

Link copied to clipboard
open override fun getMorphemes(morphId: Int, surfaceForm: CharArray, off: Int, len: Int): Array<KoMorphData.Morpheme>?

Get the morphemes of specified word (e.g. 가깝으나: 가깝 + 으나).

Link copied to clipboard
open override fun getPOSType(morphId: Int): POS.Type

Get the POS.Type of specified word (morpheme, compound, inflect or pre-analysis)

Link copied to clipboard
open override fun getReading(morphId: Int): String?

Get the reading of specified word (mainly used for Hanja to Hangul conversion).

Link copied to clipboard
open override fun getRightId(morphId: Int): Int
Link copied to clipboard
open override fun getRightPOS(morphId: Int): POS.Tag

Get the right POS.Tag of specified word.

Link copied to clipboard
open override fun getWordCost(morphId: Int): Int