powered by
Computing the most likely configuration for CRF
decode.block( crf, blocks, decode.method = decode.tree, restart = 0, start = apply(crf$node.pot, 1, which.max), ... )
The CRF
A list of vectors, each vector containing the nodes in a block
The decoding method to solve the clamped CRF
Non-negative integer to control how many restart iterations are repeated
An initial configuration, a good start will significantly reduce the seraching time
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
Approximate decoding with the block iterated conditional modes algorithm
# NOT RUN { library(CRF) data(Small) d <- decode.block(Small$crf, list(c(1,3), c(2,4))) # }
Run the code above in your browser using DataLab