edu.umn.cs.nlp.parser
Class IncompleteChartCell

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

public class IncompleteChartCell
extends Object
implements Comparable<IncompleteChartCell>

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

Version:
$LastChangedDate: 2007-07-16 11:23:58 -0500 (Mon, 16 Jul 2007) $
Author:
Lane Schwartz

Constructor Summary
IncompleteChartCell(int i, int j, ChartCell... children)
           
 
Method Summary
 int compareTo(IncompleteChartCell c)
           
 ChartCell getChild(int index)
           
 ChartCell[] getChildren()
           
 double getLogProb()
           
 ChartCell getOnlyChild()
           
 String getPrefix()
           
 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

IncompleteChartCell

public IncompleteChartCell(int i,
                           int j,
                           ChartCell... children)
Method Detail

getPrefix

public String getPrefix()

getOnlyChild

public ChartCell getOnlyChild()

getChildren

public ChartCell[] getChildren()

getChild

public ChartCell getChild(int index)

getLogProb

public double getLogProb()

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(IncompleteChartCell c)
Specified by:
compareTo in interface Comparable<IncompleteChartCell>