Package opennlp.tools.parser
Class Constituent
- java.lang.Object
- 
- opennlp.tools.parser.Constituent
 
- 
 public class Constituent extends Object Class used to hold constituents when reading parses.
- 
- 
Constructor SummaryConstructors Constructor Description Constituent(String label, Span span)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLabel()Returns the label of the constituent.SpangetSpan()Returns the span of the constituent.voidsetLabel(String label)Assigns the label to the constituent.
 
- 
- 
- 
Method Detail- 
getLabelpublic String getLabel() Returns the label of the constituent.- Returns:
- the label of the constituent.
 
 - 
setLabelpublic void setLabel(String label) Assigns the label to the constituent.- Parameters:
- label- The label to set.
 
 - 
getSpanpublic Span getSpan() Returns the span of the constituent.- Returns:
- the span of the constituent.
 
 
- 
 
-