public interface ConstituentFactory
ConstituentFactory
is a factory for creating objects
of class Constituent
, or some descendent class.
An interface.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.
|
Constituent newConstituent(int start, int end)
start
- Start positionend
- End positionConstituent newConstituent(int start, int end, Label label, double score)
start
- Start positionend
- End positionlabel
- Labelscore
- Score