edu.umn.cs.nlp.parser
Class IncompleteChartCell
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IncompleteChartCell
public IncompleteChartCell(int i,
int j,
ChartCell... children)
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>