decode.ilp {CRF} | R Documentation |
Computing the most likely configuration for CRF
decode.ilp(crf, lp.rounding = FALSE)
crf |
The CRF |
lp.rounding |
Boolean variable to indicate whether LP rounding is need. |
Exact decoding with an integer linear programming formulation and approximate using LP relaxation
This function will return the most likely configuration, which is a vector of length crf$n.nodes
.
## Not run:
library(CRF)
data(Small)
d <- decode.ilp(Small$crf)
## End(Not run)