TokenInfoDictionary

Binary dictionary implementation for a known-word dictionary model: Words are encoded into an FST mapping to a list of wordIDs.

Constructors

Link copied to clipboard
constructor(targetMapFile: Path, posDictFile: Path, dictFile: Path, fstFile: Path)

Create a TokenInfoDictionary from an external resource path.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
open fun getLeftId(morphId: Int): Int
Link copied to clipboard
Link copied to clipboard
open fun getRightId(morphId: Int): Int
Link copied to clipboard
open fun getWordCost(morphId: Int): Int
Link copied to clipboard
fun lookupWordIds(sourceId: Int, ref: IntsRef)