public class SimpleConstituentFactory extends Object implements ConstituentFactory
ConstituentFactory
acts as a factory for creating objects
of class Constituent
, or some descendent class.
An interface.Constructor and Description |
---|
SimpleConstituentFactory() |
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