WordDictionary

SmartChineseAnalyzer Word Dictionary

Types

Link copied to clipboard
object Companion

Large prime number for hash function

Functions

Link copied to clipboard

Transcode from GB2312 ID to Unicode.

Link copied to clipboard
fun getFrequency(charArray: CharArray): Int
Link copied to clipboard

Transcode from Unicode to GB2312.

Link copied to clipboard
fun getPrefixMatch(charArray: CharArray): Int
fun getPrefixMatch(charArray: CharArray, knownStart: Int): Int
Link copied to clipboard
fun hash1(c: Char): Long
fun hash1(carray: CharArray): Long

32-bit FNV Hash Function

Link copied to clipboard
fun hash2(c: Char): Int
fun hash2(carray: CharArray): Int

djb2 hash algorithm.

Link copied to clipboard
fun isEqual(charArray: CharArray, itemIndex: Int): Boolean
Link copied to clipboard
fun load()

Load coredict data from generated Kotlin source.

fun load(dctFileRoot: String)

Attempt to load dictionary from provided directory. Not supported in common code.