Learn R Programming

CRF (version 0.4-3)

decode.ilp: Decoding method using integer linear programming

Description

Computing the most likely configuration for CRF

Usage

decode.ilp(crf, lp.rounding = FALSE)

Arguments

crf

The CRF

lp.rounding

Boolean variable to indicate whether LP rounding is need.

Value

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

Details

Exact decoding with an integer linear programming formulation and approximate using LP relaxation

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
library(CRF)
data(Small)
d <- decode.ilp(Small$crf)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab