opennlp.tools.parser
Class Constituent

java.lang.Object
  extended by opennlp.tools.parser.Constituent

public class Constituent
extends Object

Class used to hold constituents when reading parses.


Constructor Summary
Constituent(String label, Span span)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Constituent

public Constituent(String label,
                   Span span)
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.


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.