edu.stanford.nlp.trees
Class LabeledScoredConstituentFactory

java.lang.Object
  extended by edu.stanford.nlp.trees.LabeledScoredConstituentFactory
All Implemented Interfaces:
ConstituentFactory

public class LabeledScoredConstituentFactory
extends Object
implements ConstituentFactory

A LabeledScoredConstituentFactory acts as a factory for creating objects of class LabeledScoredConstituent.

Author:
Christopher Manning

Constructor Summary
LabeledScoredConstituentFactory()
           
 
Method Summary
 Constituent newConstituent(int start, int end)
          Build a constituent with this start and end.
 Constituent newConstituent(int start, int end, Label label, double score)
          Build a constituent with this start and end.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabeledScoredConstituentFactory

public LabeledScoredConstituentFactory()
Method Detail

newConstituent

public Constituent newConstituent(int start,
                                  int end)
Description copied from interface: ConstituentFactory
Build a constituent with this start and end.

Specified by:
newConstituent in interface ConstituentFactory
Parameters:
start - Start position
end - End position

newConstituent

public Constituent newConstituent(int start,
                                  int end,
                                  Label label,
                                  double score)
Description copied from interface: ConstituentFactory
Build a constituent with this start and end.

Specified by:
newConstituent in interface ConstituentFactory
Parameters:
start - Start position
end - End position
label - Label
score - Score


Stanford NLP Group