public class LabeledScoredConstituentFactory extends java.lang.Object implements ConstituentFactory
LabeledScoredConstituentFactory acts as a factory for
creating objects of class LabeledScoredConstituent.| Constructor and Description |
|---|
LabeledScoredConstituentFactory() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public Constituent newConstituent(int start, int end)
ConstituentFactorynewConstituent in interface ConstituentFactorystart - Start positionend - End positionpublic Constituent newConstituent(int start, int end, Label label, double score)
ConstituentFactorynewConstituent in interface ConstituentFactorystart - Start positionend - End positionlabel - Labelscore - Score