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