KoMorphData

Represents Korean morphological information.

Inheritors

Types

Link copied to clipboard
data class Morpheme(val posTag: POS.Tag, val surfaceForm: String)

A morpheme extracted from a compound token.

Functions

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

Get the left POS.Tag of specified word.

Link copied to clipboard
abstract 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
abstract fun getPOSType(morphId: Int): POS.Type

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

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

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

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

Get the right POS.Tag of specified word.

Link copied to clipboard
abstract fun getWordCost(morphId: Int): Int