edu.stanford.nlp.ie.hmm
Class TargetTrainer

java.lang.Object
  |
  +--edu.stanford.nlp.ie.hmm.TargetTrainer

public class TargetTrainer
extends Object

Trains a small target HMM on target sequences only. This can be done using either a fixed structure, or through structure learning. The class learns HMM structures by searching the space of structures using simple add sequence and state operators and using likelihood as a scoring function.


Method Summary
static void main(String[] args)
          This is a command line utility that builds a serialized extractor for the content of a field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
This is a command line utility that builds a serialized extractor for the content of a field. The usage is:
java edu.stanford.nlp.ie.hmm.TargetTrainer [-sl|-tc] trainingFile targetField [hmmFile]
The main usage is for training a target HMM. With no flags, it uses a fixed 2x2 structure, and with the flag -sl it attempts to learn a good target structure. It saves the built hmm in a file targetField.hmm unless the third parameter is supplied. With the flag -tc, the program just checks that isolateTarget() works by printing the target states from the first few documents.

Parameters:
args - Command line arguments, as above.


Stanford NLP Group