decode.chain {CRF} | R Documentation |
Computing the most likely configuration for CRF
decode.chain(crf)
crf |
The CRF |
Exact decoding for chain-structured graphs with the Viterbi algorithm.
This function will return the most likely configuration, which is a vector of length crf$n.nodes
.
library(CRF)
data(Small)
d <- decode.chain(Small$crf)