Skip to content
jdchoi77 edited this page Dec 11, 2014 · 1 revision

The state class represents the current state of process. It is responsible for storing the gold-standard labels, defining processing strategies, giving information about the current state, storing the past state history, etc. This page shows examples of two state classes, POSState and DEPState, used for part-of-speech tagging and dependency parsing.

Initialization

TagState extends AbstractState and specifies String as the label type. The class has only one member instance, i_input, which indicates the ID of the current dependency node to process. For left-to-rigth tagging, i_input is initially set to 0.

Abstract methods

  • initGoldLabels stores the gold-standard labels for training and deletes them from the dependency tree to prevent features overly generated from these gold tags. The method currently stores named entity tags but
  • getGoldLabel returns the gold-standard label for
Clone this wiki locally