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