Package 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
AConstituentFactoryacts as a factory for creating objects of classConstituent, or some descendent class. An interface.- Author:
- Christopher Manning
-
-
Constructor Summary
Constructors Constructor Description SimpleConstituentFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstituentnewConstituent(int start, int end)Build a constituent with this start and end.ConstituentnewConstituent(int start, int end, Label label, double score)Build a constituent with this start and end.
-
-
-
Method Detail
-
newConstituent
public Constituent newConstituent(int start, int end)
Description copied from interface:ConstituentFactoryBuild a constituent with this start and end.- Specified by:
newConstituentin interfaceConstituentFactory- Parameters:
start- Start positionend- End position
-
newConstituent
public Constituent newConstituent(int start, int end, Label label, double score)
Description copied from interface:ConstituentFactoryBuild a constituent with this start and end.- Specified by:
newConstituentin interfaceConstituentFactory- Parameters:
start- Start positionend- End positionlabel- Labelscore- Score
-
-