- <init>
- close
Should be called when model reading finished
- readCounts
Reads language model order and ngram counts
- readFloatArr
Reads float array of specified length. Quantation tables are stored in form of
float arrays, see rea
- readOrder
Reads language model max depth. Order is stored in uint8 or in byte
- readQuant
Reads weights quantation object from stream
- readString
Reads a string of the given length from the given DataInputStream. It is assumed
that the DataInputS
- readTrieByteArr
Reads trie in form of byte array into provided array. Size of byte array is
computed from previously
- readUnigrams
Reads array of language model unigrams
- readWords
Reads vocabulary of language model. Ordinal number of word stays for wordId.
- verifyHeader
Reads header from stream and checks if it matches trie header