as.crf {crfsuite}R Documentation

Convert a model built with CRFsuite to an object of class crf

Description

If you have a model built with CRFsuite either by this R package or by another software library which wraps CRFsuite (e.g. Python/Java), you can convert it to an object of class crf which this package can use to inspect the model and to use it for prediction (if you can mimic the way the attributes are created).
This is for expert use only.

Usage

as.crf(file, ...)

Arguments

file

the path to a file on disk containing the CRFsuite model

...

other arguments which can be set except the path to the file, namely method, type, options, attribute_names, log (expert use only)

Value

an object of class crf


[Package crfsuite version 0.4.2 Index]