R: Decoding method for chain-structured graphs

decode.chain {CRF} | R Documentation

## Decoding method for chain-structured graphs

### Description

Computing the most likely configuration for CRF

### Usage

    decode.chain(crf)

### Arguments

`crf` | The CRF

### Details

Exact decoding for chain-structured graphs with the Viterbi algorithm.

### 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.chain(Small$crf)

[Package CRF version 0.4-3 Index]