edu.umn.cs.nlp.old
Class IncompleteParseSpan

java.lang.Object
  extended by edu.umn.cs.nlp.old.IncompleteParseSpan
All Implemented Interfaces:
Comparable<IncompleteParseSpan>

public class IncompleteParseSpan
extends Object
implements Comparable<IncompleteParseSpan>

Represents a incomplete span in a variant CKY+ parse chart. Rules are not required to be in Chomsky Normal Form.

Version:
$LastChangedDate: 2007-11-05 14:47:08 -0600 (Mon, 05 Nov 2007) $
Author:
Lane Schwartz

Constructor Summary
IncompleteParseSpan(int i, int j, ParseSpan... children)
           
 
Method Summary
 int compareTo(IncompleteParseSpan c)
           
 ParseSpan getChild(int index)
           
 ParseSpan[] getChildren()
           
 ParseSpan getOnlyChild()
           
 String getPrefix()
           
 double getScore()
           
 int getSpansFrom()
           
 int getSpansTo()
           
 int getSplitPoint(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncompleteParseSpan

public IncompleteParseSpan(int i,
                           int j,
                           ParseSpan... children)
Method Detail

getPrefix

public String getPrefix()

getOnlyChild

public ParseSpan getOnlyChild()

getChildren

public ParseSpan[] getChildren()

getChild

public ParseSpan getChild(int index)

getScore

public double getScore()

getSpansFrom

public int getSpansFrom()
Returns:
the spansFrom

getSpansTo

public int getSpansTo()
Returns:
the spansTo

getSplitPoint

public int getSplitPoint(int index)
Returns:
the splitsAt

compareTo

public int compareTo(IncompleteParseSpan c)
Specified by:
compareTo in interface Comparable<IncompleteParseSpan>