decode.sample {CRF} | R Documentation |
Computing the most likely configuration for CRF
decode.sample(crf, sample.method, ...)
crf |
The CRF |
sample.method |
The sampling method |
... |
The parameters for |
Approximate decoding using sampling (takes a sampling 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.sample(Small$crf, sample.exact, 10000)