decode.conditional {CRF} | R Documentation |
Conditional decoding method
Description
Computing the most likely configuration for CRF
Usage
decode.conditional(crf, clamped, decode.method, ...)
Arguments
crf |
The CRF |
clamped |
The vector of fixed values for clamped nodes, 0 for unfixed nodes |
decode.method |
The decoding method to solve clamped CRF |
... |
The parameters for |
Details
Conditional decoding (takes another decoding method as input)
Value
This function will return the most likely configuration, which is a vector of length crf$n.nodes
.
Examples
library(CRF)
data(Small)
d <- decode.conditional(Small$crf, c(0,1,0,0), decode.exact)
[Package CRF version 0.4-3 Index]