powered by
Computing the most likely configuration for CRF
decode.conditional(crf, clamped, decode.method, ...)
The CRF
The vector of fixed values for clamped nodes, 0 for unfixed nodes
The decoding method to solve clamped CRF
The parameters for decode.method
decode.method
This function will return the most likely configuration, which is a vector of length crf$n.nodes.
crf$n.nodes
Conditional decoding (takes another decoding method as input)
# NOT RUN { library(CRF) data(Small) d <- decode.conditional(Small$crf, c(0,1,0,0), decode.exact) # }
Run the code above in your browser using DataLab