Java opennlp.tools.parser Parse fields, constructors, methods, implement or subclass

Example usage for Java opennlp.tools.parser Parse fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for opennlp.tools.parser Parse.

The text is from its open source code.

Constructor

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.

Method

intgetChildCount()
Returns the number of children for this parse node.
Parse[]getChildren()
Returns the child constituents of this constituent .
StringgetCoveredText()
doublegetProb()
Returns the log of the product of the probability associated with all the decisions which formed this constituent.
SpangetSpan()
Returns the character offsets for this constituent.
StringgetText()
Returns the text of the sentence over which this parse was formed.
StringgetType()
Returns the constituent label for this node of the parse.
voidinsert(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.
booleanisPosTag()
Indicates whether this parse node is a pos-tag.
ParseparseParse(String parse)
Parses the specified tree-bank style parse string and return a Parse structure for that string.
voidpruneParse(Parse parse)
Prune the specified sentence parse of vacuous productions.
voidsetType(String type)
Set the type of this constituent to the specified type.
voidshow(StringBuffer sb)
Appends the specified string buffer with a string representation of this parse.