decode.tree {CRF} | R Documentation |
Computing the most likely configuration for CRF
decode.tree(crf)
crf |
The CRF |
Exact decoding for tree- and forest-structured graphs with max-product belief propagation
This function will return the most likely configuration, which is a vector of length crf$n.nodes
.
library(CRF)
data(Small)
d <- decode.tree(Small$crf)