edu.stanford.nlp.trees
Class SimpleConstituentFactory

java.lang.Object
  |
  +--edu.stanford.nlp.trees.SimpleConstituentFactory
All Implemented Interfaces:
ConstituentFactory

public class SimpleConstituentFactory
extends Object
implements ConstituentFactory

A ConstituentFactory acts as a factory for creating objects of class Constituent, or some descendent class. An interface.


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

Constructor Detail

SimpleConstituentFactory

public SimpleConstituentFactory()
Method Detail

newConstituent

public Constituent newConstituent(int start,
                                  int end)
Specified by:
newConstituent in interface ConstituentFactory

newConstituent

public Constituent newConstituent(int start,
                                  int end,
                                  Label label,
                                  double score)
Specified by:
newConstituent in interface ConstituentFactory


Stanford NLP Group