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)
ConstituentFactory
newConstituent
in interface ConstituentFactory
start
- Start positionend
- End positionpublic Constituent newConstituent(int start, int end, Label label, double score)
ConstituentFactory
newConstituent
in interface ConstituentFactory
start
- Start positionend
- End positionlabel
- Labelscore
- Score