ViterbiNBest

abstract class ViterbiNBest<T : Token, U : MorphData>(fst: TokenInfoFST, fstReader: FST.BytesReader, dictionary: BinaryDictionary<out MorphData>, userFST: TokenInfoFST?, userFSTReader: FST.BytesReader?, userDictionary: Dictionary<out MorphData>?, costs: ConnectionCosts) : Viterbi<T, ViterbiNBest.PositionNBest>

Viterbi subclass for n-best path calculation.

Constructors

Link copied to clipboard
constructor(fst: TokenInfoFST, fstReader: FST.BytesReader, dictionary: BinaryDictionary<out MorphData>, userFST: TokenInfoFST?, userFSTReader: FST.BytesReader?, userDictionary: Dictionary<out MorphData>?, costs: ConnectionCosts)

Types

Link copied to clipboard

Viterbi.Position extension; this holds all forward pointers to calculate n-best path.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var pos: Int

Functions

Link copied to clipboard
fun forward()
Link copied to clipboard
Link copied to clipboard
open fun isEnd(): Boolean
Link copied to clipboard
Link copied to clipboard
fun probeDelta(start: Int, end: Int): Int
Link copied to clipboard
fun resetBuffer(reader: Reader)
Link copied to clipboard