decode.marginal function

Decoding method using inference

Decoding method using inference

Computing the most likely configuration for CRF

decode.marginal(crf, infer.method, ...)

Arguments

  • crf: The CRF
  • infer.method: The inference method
  • ...: The parameters for infer.method

Returns

This function will return the most likely configuration, which is a vector of length crf$n.nodes.

Details

Approximate decoding using inference (takes an inference method as input)

Examples

library(CRF) data(Small) d <- decode.marginal(Small$crf, infer.exact)
  • Maintainer: Ling-Yun Wu
  • License: GPL (>= 2)
  • Last published: 2019-12-01