edu.stanford.nlp.parser.lexparser
Class Test.Constraint
java.lang.Object
edu.stanford.nlp.parser.lexparser.Test.Constraint
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- Test
public static class Test.Constraint
- extends Object
- implements Serializable
A Constraint represents a restriction on possible parse trees to
consider. It says that a parse cannot be postulated that would
contradict having a constituent from position start to end, and that
any constituent postulated with this span must match the regular
expression given by state. Note, however, that it does not strictly
guarantee that such a constituent exists in a returned parse.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
start
public int start
end
public int end
state
public Pattern state
Test.Constraint
public Test.Constraint()
Test.Constraint
public Test.Constraint(int start,
int end,
Pattern state)
Stanford NLP Group