Package nltk :: Package tag :: Module crf
[hide private]
[frames] | no frames]

Module crf

source code

An interface to Mallet's Linear Chain Conditional Random Field (LC-CRF) implementation.

A user-supplied feature detector function is used to convert each token to a featureset. Each feature/value pair is then encoded as a single binary feature for Mallet.

Classes [hide private]
  MalletCRF
A conditional random field tagger, which is trained and run by making external calls to Mallet.
  CRFInfo
An object used to record configuration information about a MalletCRF object.
Functions [hide private]
 
demo(train_size=100, test_size=100, java_home='/usr/local/jdk1.5.0/', mallet_home='/usr/local/mallet-0.4') source code