decode.sample {CRF} | R Documentation |
Decoding method using sampling
Description
Computing the most likely configuration for CRF
Usage
decode.sample(crf, sample.method, ...)
Arguments
crf |
The CRF |
sample.method |
The sampling method |
... |
The parameters for |
Details
Approximate decoding using sampling (takes a sampling 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.sample(Small$crf, sample.exact, 10000)
[Package CRF version 0.4-3 Index]