Example usage for Java opennlp.tools.parser Parse fields, constructors, methods, implement or subclass
The text is from its open source code.
Parse(String text, Span span, String type, double p, int index) Creates a new parse node for this specified text and span of the specified type with the specified probability and the specified head index. | |
Parse(String text, Span span, String type, double p, Parse h) Creates a new parse node for this specified text and span of the specified type with the specified probability and the specified head and head index. |
int | getChildCount() Returns the number of children for this parse node. |
Parse[] | getChildren() Returns the child constituents of this constituent . |
String | getCoveredText() |
double | getProb() Returns the log of the product of the probability associated with all the decisions which formed this constituent. |
Span | getSpan() Returns the character offsets for this constituent. |
String | getText() Returns the text of the sentence over which this parse was formed. |
String | getType() Returns the constituent label for this node of the parse. |
void | insert(final Parse constituent) Inserts the specified constituent into this parse based on its text span.This method assumes that the specified constituent can be inserted into this parse. |
boolean | isPosTag() Indicates whether this parse node is a pos-tag. |
Parse | parseParse(String parse) Parses the specified tree-bank style parse string and return a Parse structure for that string. |
void | pruneParse(Parse parse) Prune the specified sentence parse of vacuous productions. |
void | setType(String type) Set the type of this constituent to the specified type. |
void | show(StringBuffer sb) Appends the specified string buffer with a string representation of this parse. |