decode.marginal {CRF} | R Documentation |
Computing the most likely configuration for CRF
decode.marginal(crf, infer.method, ...)
crf |
The CRF |
infer.method |
The inference method |
... |
The parameters for |
Approximate decoding using inference (takes an inference method as input)
This function will return the most likely configuration, which is a vector of length crf$n.nodes
.
library(CRF)
data(Small)
d <- decode.marginal(Small$crf, infer.exact)