DictionaryToken

class DictionaryToken(type: TokenType, morphAtts: KoMorphData, wordId: Int, surfaceForm: CharArray, offset: Int, length: Int, startOffset: Int, endOffset: Int) : Token

A token stored in a KoMorphData.

Constructors

Link copied to clipboard
constructor(type: TokenType, morphAtts: KoMorphData, wordId: Int, surfaceForm: CharArray, offset: Int, length: Int, startOffset: Int, endOffset: Int)

Properties

Link copied to clipboard
Link copied to clipboard
open override val leftPOS: POS.Tag

Get the left part of speech of the token.

Link copied to clipboard
val length: Int
Link copied to clipboard

Get the KoMorphData.Morpheme decomposition of the token.

Link copied to clipboard
val offset: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val posType: POS.Type

Get the POS.Type of the token.

Link copied to clipboard
open override val readingValue: String?

Get the reading of the token.

Link copied to clipboard
open override val rightPOS: POS.Tag

Get the right part of speech of the token.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns true if this token is known word

Link copied to clipboard

Returns true if this token is unknown word

Link copied to clipboard

Returns true if this token is defined in user dictionary

Link copied to clipboard
open override fun toString(): String