BinaryDictionary

abstract class BinaryDictionary<T : MorphData>(targetMapResource: IOSupplier<InputStream>, dictResource: IOSupplier<InputStream>, targetMapCodecHeader: String, dictCodecHeader: String, dictCodecVersion: Int) : Dictionary<T>

Abstract dictionary base class.

Constructors

Link copied to clipboard
constructor(targetMapResource: IOSupplier<InputStream>, dictResource: IOSupplier<InputStream>, targetMapCodecHeader: String, dictCodecHeader: String, dictCodecVersion: Int)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun getLeftId(morphId: Int): Int

Get left id of specified word

Link copied to clipboard
abstract fun getMorphAttributes(): T
Link copied to clipboard
open fun getRightId(morphId: Int): Int

Get right id of specified word

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

Get word cost of specified word

Link copied to clipboard
fun lookupWordIds(sourceId: Int, ref: IntsRef)