Uses of Class
opennlp.tools.parser.Parse
-
Packages that use Parse Package Description opennlp.tools.cmdline.parser opennlp.tools.formats Experimental package related to converting various corpora to OpenNLP Format.opennlp.tools.formats.convert opennlp.tools.formats.frenchtreebank opennlp.tools.formats.ontonotes opennlp.tools.parser Package containing common code for performing full syntactic parsing.opennlp.tools.parser.chunking Package containing code for performing full syntactic parsing using shift/reduce-style decisions.opennlp.tools.parser.lang.en opennlp.tools.parser.lang.es opennlp.tools.parser.treeinsert Package containing experimental code for performing full syntactic parsing using attachment decisions. -
-
Uses of Parse in opennlp.tools.cmdline.parser
Methods in opennlp.tools.cmdline.parser that return Parse Modifier and Type Method Description static Parse[]ParserTool. parseLine(String line, Parser parser, int numParses)static Parse[]ParserTool. parseLine(String line, Parser parser, Tokenizer tokenizer, int numParses)Method parameters in opennlp.tools.cmdline.parser with type arguments of type Parse Modifier and Type Method Description protected ParserModelBuildModelUpdaterTool. trainAndUpdate(ParserModel originalModel, ObjectStream<Parse> parseSamples, opennlp.tools.cmdline.parser.ModelUpdaterTool.ModelUpdaterParams parameters)protected ParserModelCheckModelUpdaterTool. trainAndUpdate(ParserModel originalModel, ObjectStream<Parse> parseSamples, opennlp.tools.cmdline.parser.ModelUpdaterTool.ModelUpdaterParams parameters) -
Uses of Parse in opennlp.tools.formats
Methods in opennlp.tools.formats that return types with arguments of type Parse Modifier and Type Method Description ObjectStream<Parse>ParseSampleStreamFactory. create(String[] args) -
Uses of Parse in opennlp.tools.formats.convert
Constructor parameters in opennlp.tools.formats.convert with type arguments of type Parse Constructor Description ParseToPOSSampleStream(ObjectStream<Parse> samples) -
Uses of Parse in opennlp.tools.formats.frenchtreebank
Methods in opennlp.tools.formats.frenchtreebank that return Parse Modifier and Type Method Description ParseConstitParseSampleStream. read()Methods in opennlp.tools.formats.frenchtreebank that return types with arguments of type Parse Modifier and Type Method Description ObjectStream<Parse>ConstitParseSampleStreamFactory. create(String[] args) -
Uses of Parse in opennlp.tools.formats.ontonotes
Methods in opennlp.tools.formats.ontonotes that return Parse Modifier and Type Method Description ParseOntoNotesParseSampleStream. read()Methods in opennlp.tools.formats.ontonotes that return types with arguments of type Parse Modifier and Type Method Description ObjectStream<Parse>OntoNotesParseSampleStreamFactory. create(String[] args) -
Uses of Parse in opennlp.tools.parser
Methods in opennlp.tools.parser that return Parse Modifier and Type Method Description ParseParse. adjoin(Parse sister, HeadRules rules)Sister adjoins this node's last child and the specified sister node and returns their new parent node.ParseParse. adjoinRoot(Parse node, HeadRules rules, int parseIndex)protected Parse[]AbstractBottomUpParser. advanceChunks(Parse p, double minChunkScore)Returns the top chunk sequences for the specified parse.protected abstract Parse[]AbstractBottomUpParser. advanceParses(Parse p, double probMass)Advances the specified parse and returns the an array advanced parses whose probability accounts for more than the specified amount of probability mass.protected Parse[]AbstractBottomUpParser. advanceTags(Parse p)Advances the parse by assigning it POS tags and returns multiple tag sequences.ParseParse. clone(Parse node)Clones the right frontier of parse up to the specified node.ParseParse. cloneRoot(Parse node, int parseIndex)Clones the right frontier of this root parse up to and including the specified node.static Parse[]AbstractBottomUpParser. collapsePunctuation(Parse[] chunks, Set<String> punctSet)Removes the punctuation from the specified set of chunks, adds it to the parses adjacent to the punctuation is specified, and returns a new array of parses with the punctuation removed.Parse[]Parse. getChildren()Returns the child constituents of this constituent .ParseParse. getCommonParent(Parse node)Returns the deepest shared parent of this node and the specified node.ParseHeadRules. getHead(Parse[] constituents, String type)Returns the head constituent for the specified constituents of the specified type.ParseParse. getHead()Returns the head constituent associated with this constituent.static Parse[]AbstractParserEventStream. getInitialChunks(Parse p)static Parse[]ChunkSampleStream. getInitialChunks(Parse p)ParseParse. getParent()Returns the parent parse node of this constituent.Parse[]Parse. getTagNodes()Returns the parse nodes which are children of this node and which are pos tags.Parse[]Parse. getTokenNodes()ParseAbstractBottomUpParser. parse(Parse tokens)Parse[]AbstractBottomUpParser. parse(Parse tokens, int numParses)ParseParser. parse(Parse tokens)Returns a parse for the specified parse of tokens.Parse[]Parser. parse(Parse tokens, int numParses)Returns the specified number of parses or fewer for the specified tokens.static ParseParse. parseParse(String parse)Parses the specified tree-bank style parse string and return a Parse structure for that string.static ParseParse. parseParse(String parse, GapLabeler gl)Parses the specified tree-bank style parse string and return a Parse structure for that string.protected ParseParserEvaluator. processSample(Parse reference)ParseParseSampleStream. read()Methods in opennlp.tools.parser that return types with arguments of type Parse Modifier and Type Method Description Collection<Parse>Parse. getNextPunctuationSet()Returns the set of punctuation parses that occur immediately after this parse.Collection<Parse>Parse. getPreviousPunctuationSet()Returns the set of punctuation parses that occur immediately before this parse.Methods in opennlp.tools.parser with parameters of type Parse Modifier and Type Method Description voidParse. add(Parse daughter, HeadRules rules)static voidParse. addNames(String tag, Span[] names, Parse[] tokens)Utility method to inserts named entities.voidParse. addNextPunctuation(Parse punct)Designates that the specified punctuation follows this parse.protected abstract voidAbstractParserEventStream. addParseEvents(List<Event> newEvents, Parse[] chunks)Produces all events for the specified sentence chunks and adds them to the specified list.voidParse. addPreviousPunctuation(Parse punct)Designates that the specified punctuation should is prior to this parse.ParseParse. adjoin(Parse sister, HeadRules rules)Sister adjoins this node's last child and the specified sister node and returns their new parent node.ParseParse. adjoinRoot(Parse node, HeadRules rules, int parseIndex)protected Parse[]AbstractBottomUpParser. advanceChunks(Parse p, double minChunkScore)Returns the top chunk sequences for the specified parse.protected abstract Parse[]AbstractBottomUpParser. advanceParses(Parse p, double probMass)Advances the specified parse and returns the an array advanced parses whose probability accounts for more than the specified amount of probability mass.protected Parse[]AbstractBottomUpParser. advanceTags(Parse p)Advances the parse by assigning it POS tags and returns multiple tag sequences.protected abstract voidAbstractBottomUpParser. advanceTop(Parse p)Adds the "TOP" node to the specified parse.protected voidAbstractContextGenerator. checkcons(Parse child, String i, String type, List<String> features)Produces features to determine whether the specified child node is part of a complete constituent of the specified type and adds those features to the specfied list.protected voidAbstractContextGenerator. checkcons(Parse p1, Parse p2, String type, List<String> features)ParseParse. clone(Parse node)Clones the right frontier of parse up to the specified node.ParseParse. cloneRoot(Parse node, int parseIndex)Clones the right frontier of this root parse up to and including the specified node.static Parse[]AbstractBottomUpParser. collapsePunctuation(Parse[] chunks, Set<String> punctSet)Removes the punctuation from the specified set of chunks, adds it to the parses adjacent to the punctuation is specified, and returns a new array of parses with the punctuation removed.intParse. compareTo(Parse p)protected StringAbstractContextGenerator. cons(Parse p, int i)protected StringAbstractContextGenerator. consbo(Parse p, int i)protected Iterator<Event>AbstractParserEventStream. createEvents(Parse sample)voidParse. expandTopNode(Parse root)static voidParse. fixPossesives(Parse parse)ParseParse. getCommonParent(Parse node)Returns the deepest shared parent of this node and the specified node.protected voidAbstractContextGenerator. getFrontierNodes(List<Parse> rf, Parse[] nodes)Populates specified nodes array with left-most right frontier node with a unique head.ParseHeadRules. getHead(Parse[] constituents, String type)Returns the head constituent for the specified constituents of the specified type.static Parse[]AbstractParserEventStream. getInitialChunks(Parse p)static Parse[]ChunkSampleStream. getInitialChunks(Parse p)intParse. indexOf(Parse child)Returns the index of this specified child.voidParse. insert(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.protected booleanAbstractParserEventStream. lastChild(Parse child, Parse parent)Returns true if the specified child is the last child of the specified parent.protected intAbstractBottomUpParser. mapParseIndex(int index, Parse[] nonPunctParses, Parse[] parses)Determines the mapping between the specified index into the specified parses without punctuation to the corresponding index into the specified parses.ParseAbstractBottomUpParser. parse(Parse tokens)Parse[]AbstractBottomUpParser. parse(Parse tokens, int numParses)ParseParser. parse(Parse tokens)Returns a parse for the specified parse of tokens.Parse[]Parser. parse(Parse tokens, int numParses)Returns the specified number of parses or fewer for the specified tokens.protected ParseParserEvaluator. processSample(Parse reference)protected StringAbstractContextGenerator. production(Parse p, boolean includePunctuation)Generates a string representing the grammar rule production that the specified parse is starting.static voidParse. pruneParse(Parse parse)Prune the specified sentence parse of vacuous productions.protected StringAbstractContextGenerator. punct(Parse punct, int i)Creates punctuation feature for the specified punctuation at the specified index based on the punctuation mark.protected StringAbstractContextGenerator. punctbo(Parse punct, int i)Creates punctuation feature for the specified punctuation at the specfied index based on the punctuation's tag.voidParse. setParent(Parse parent)Specifies the parent parse node for this constituent.static voidAbstractBottomUpParser. setParents(Parse p)Assigns parent references for the specified parse so that they are consistent with the children references.protected voidAbstractContextGenerator. surround(Parse node, int i, String type, Collection<Parse> punctuation, List<String> features)Generates features for nodes surrounding a completed node of the specified type.Method parameters in opennlp.tools.parser with type arguments of type Parse Modifier and Type Method Description static DictionaryAbstractBottomUpParser. buildDictionary(ObjectStream<Parse> data, HeadRules rules, int cutoff)Creates a n-gram dictionary from the specified data stream using the specified head rule and specified cut-off.static DictionaryAbstractBottomUpParser. buildDictionary(ObjectStream<Parse> data, HeadRules rules, TrainingParameters params)Creates a n-gram dictionary from the specified data stream using the specified head rule and specified cut-off.protected voidAbstractContextGenerator. cons2(List<String> features, Cons c0, Cons c1, Collection<Parse> punct1s, boolean bigram)protected voidAbstractContextGenerator. cons3(List<String> features, Cons c0, Cons c1, Cons c2, Collection<Parse> punct1s, Collection<Parse> punct2s, boolean trigram, boolean bigram1, boolean bigram2)Creates cons features involving the 3 specified nodes and adds them to the specified feature list.voidParserCrossValidator. evaluate(ObjectStream<Parse> samples, int nFolds)protected voidAbstractContextGenerator. getFrontierNodes(List<Parse> rf, Parse[] nodes)Populates specified nodes array with left-most right frontier node with a unique head.voidParse. setNextPunctuation(Collection<Parse> punctSet)Sets the set of punctuation tags which follow this parse.voidParse. setPrevPunctuation(Collection<Parse> punctSet)Sets the set of punctuation tags which preceed this parse.protected voidAbstractContextGenerator. surround(Parse node, int i, String type, Collection<Parse> punctuation, List<String> features)Generates features for nodes surrounding a completed node of the specified type.Constructors in opennlp.tools.parser with parameters of type Parse Constructor Description 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.Constructor parameters in opennlp.tools.parser with type arguments of type Parse Constructor Description AbstractParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype)AbstractParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict)ChunkSampleStream(ObjectStream<Parse> in)PosSampleStream(ObjectStream<Parse> in) -
Uses of Parse in opennlp.tools.parser.chunking
Methods in opennlp.tools.parser.chunking that return Parse Modifier and Type Method Description protected Parse[]Parser. advanceParses(Parse p, double probMass)static Parse[]ParserEventStream. reduceChunks(Parse[] chunks, int ci, Parse parent)Methods in opennlp.tools.parser.chunking with parameters of type Parse Modifier and Type Method Description protected voidParserEventStream. addParseEvents(List<Event> parseEvents, Parse[] chunks)Adds events for parsing (post tagging and chunking to the specified list of events for the specified parse chunks.protected Parse[]Parser. advanceParses(Parse p, double probMass)protected voidParser. advanceTop(Parse p)protected booleanParserEventStream. firstChild(Parse child, Parse parent)Returns true if the specified child is the first child of the specified parent.String[]BuildContextGenerator. getContext(Parse[] constituents, int index)Returns the predictive context used to determine how constituent at the specified index should be combined with other contisuents.String[]CheckContextGenerator. getContext(Parse[] constituents, String type, int start, int end)Returns predictive context for deciding whether the specified constituents between the specified start and end index can be combined to form a new constituent of the specified type.static Parse[]ParserEventStream. reduceChunks(Parse[] chunks, int ci, Parse parent)Method parameters in opennlp.tools.parser.chunking with type arguments of type Parse Modifier and Type Method Description static ParserModelParser. train(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, TrainingParameters mlParams)Constructor parameters in opennlp.tools.parser.chunking with type arguments of type Parse Constructor Description ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype)ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict)Create an event stream based on the specified data stream of the specified type using the specified head rules. -
Uses of Parse in opennlp.tools.parser.lang.en
Methods in opennlp.tools.parser.lang.en that return Parse Modifier and Type Method Description ParseHeadRules. getHead(Parse[] constituents, String type)Methods in opennlp.tools.parser.lang.en with parameters of type Parse Modifier and Type Method Description ParseHeadRules. getHead(Parse[] constituents, String type) -
Uses of Parse in opennlp.tools.parser.lang.es
Methods in opennlp.tools.parser.lang.es that return Parse Modifier and Type Method Description ParseAncoraSpanishHeadRules. getHead(Parse[] constituents, String type)Methods in opennlp.tools.parser.lang.es with parameters of type Parse Modifier and Type Method Description ParseAncoraSpanishHeadRules. getHead(Parse[] constituents, String type) -
Uses of Parse in opennlp.tools.parser.treeinsert
Methods in opennlp.tools.parser.treeinsert that return Parse Modifier and Type Method Description protected Parse[]Parser. advanceChunks(Parse p, double minChunkScore)protected Parse[]Parser. advanceParses(Parse p, double probMass)Methods in opennlp.tools.parser.treeinsert that return types with arguments of type Parse Modifier and Type Method Description static List<Parse>Parser. getRightFrontier(Parse root, Set<String> punctSet)Returns the right frontier of the specified parse tree with nodes ordered from deepest to shallowest.Methods in opennlp.tools.parser.treeinsert with parameters of type Parse Modifier and Type Method Description protected voidParserEventStream. addParseEvents(List<Event> parseEvents, Parse[] chunks)protected Parse[]Parser. advanceChunks(Parse p, double minChunkScore)protected Parse[]Parser. advanceParses(Parse p, double probMass)protected voidParser. advanceTop(Parse p)String[]AttachContextGenerator. getContext(Parse[] constituents, int index, List<Parse> rightFrontier, int rfi)String[]BuildContextGenerator. getContext(Parse[] constituents, int index)Returns the contexts/features for the decision to build a new constituent for the specified parse at the specified index.String[]CheckContextGenerator. getContext(Parse parent, Parse[] constituents, int index, boolean trimFrontier)static List<Parse>Parser. getRightFrontier(Parse root, Set<String> punctSet)Returns the right frontier of the specified parse tree with nodes ordered from deepest to shallowest.protected booleanParserEventStream. lastChild(Parse child, Parse parent)Method parameters in opennlp.tools.parser.treeinsert with type arguments of type Parse Modifier and Type Method Description String[]AttachContextGenerator. getContext(Parse[] constituents, int index, List<Parse> rightFrontier, int rfi)static ParserModelParser. train(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, int iterations, int cut)static ParserModelParser. train(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, TrainingParameters mlParams)Constructor parameters in opennlp.tools.parser.treeinsert with type arguments of type Parse Constructor Description ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype)ParserEventStream(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict)
-