Package opennlp.tools.parser
Class Constituent
- java.lang.Object
-
- opennlp.tools.parser.Constituent
-
-
Constructor Summary
Constructors Constructor Description Constituent(String label, Span span)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLabel()
Returns the label of the constituent.Span
getSpan()
Returns the span of the constituent.void
setLabel(String label)
Assigns the label to the constituent.
-
-
-
Method Detail
-
getLabel
public String getLabel()
Returns the label of the constituent.- Returns:
- the label of the constituent.
-
setLabel
public void setLabel(String label)
Assigns the label to the constituent.- Parameters:
label
- The label to set.
-
getSpan
public Span getSpan()
Returns the span of the constituent.- Returns:
- the span of the constituent.
-
-