Verwendungen von Klasse
opennlp.tools.parser.Parse
Packages, die Parse verwenden
Package
Beschreibung
Experimental package related to converting various corpora to OpenNLP Format.
Experimental package related to the French Treebank format.
Experimental package related to the OntoNotes 4.0 format.
Package containing common code for performing full syntactic parsing.
Package containing code for performing full syntactic parsing using shift/reduce-style decisions.
Package containing experimental code for performing full syntactic
parsing using attachment decisions.
-
Verwendungen von Parse in opennlp.tools.cmdline.parser
Methoden in opennlp.tools.cmdline.parser, die Parse zurückgebenMethodenparameter in opennlp.tools.cmdline.parser mit Typargumenten vom Typ ParseModifizierer und TypMethodeBeschreibungprotected ParserModel
BuildModelUpdaterTool.trainAndUpdate
(ParserModel originalModel, ObjectStream<Parse> parseSamples, opennlp.tools.cmdline.parser.ModelUpdaterTool.ModelUpdaterParams parameters) protected ParserModel
CheckModelUpdaterTool.trainAndUpdate
(ParserModel originalModel, ObjectStream<Parse> parseSamples, opennlp.tools.cmdline.parser.ModelUpdaterTool.ModelUpdaterParams parameters) -
Verwendungen von Parse in opennlp.tools.formats
Methoden in opennlp.tools.formats, die Typen mit Argumenten vom Typ Parse zurückgebenModifizierer und TypMethodeBeschreibung -
Verwendungen von Parse in opennlp.tools.formats.convert
Konstruktorparameter in opennlp.tools.formats.convert mit Typargumenten vom Typ ParseModifiziererKonstruktorBeschreibungParseToPOSSampleStream
(ObjectStream<Parse> samples) Initializes aParseToPOSSampleStream
. -
Verwendungen von Parse in opennlp.tools.formats.frenchtreebank
Methoden in opennlp.tools.formats.frenchtreebank, die Parse zurückgebenMethoden in opennlp.tools.formats.frenchtreebank, die Typen mit Argumenten vom Typ Parse zurückgebenModifizierer und TypMethodeBeschreibung -
Verwendungen von Parse in opennlp.tools.formats.ontonotes
Methoden in opennlp.tools.formats.ontonotes, die Parse zurückgebenMethoden in opennlp.tools.formats.ontonotes, die Typen mit Argumenten vom Typ Parse zurückgebenModifizierer und TypMethodeBeschreibung -
Verwendungen von Parse in opennlp.tools.parser
Methoden in opennlp.tools.parser, die Parse zurückgebenModifizierer und TypMethodeBeschreibungSister adjoins this node's last child and the specified sister node and returns their new parent node.Parse.adjoinRoot
(Parse node, HeadRules rules, int parseIndex) protected Parse[]
AbstractBottomUpParser.advanceChunks
(Parse p, double minChunkScore) Returns the top chunk sequences for the specifiedParse
.protected abstract Parse[]
AbstractBottomUpParser.advanceParses
(Parse p, double probMass) Advances the specifiedParse
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 theParse
by assigning it POS tags and returns multiple tag sequences.Clones the right frontier ofParse
up to the specifiednode
.Clones the right frontier of this rootParse
up to and including the specified node.static Parse[]
AbstractBottomUpParser.collapsePunctuation
(Parse[] chunks, Set<String> punctSet) Removes the punctuation from the specified set ofchunks
, 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()
Parse.getCommonParent
(Parse node) Returns the deepest shared parent of this node and the specified node.Retrieves the headconstituent
for the specified constituents of giventype
.Parse.getHead()
static Parse[]
AbstractParserEventStream.getInitialChunks
(Parse p) static Parse[]
ChunkSampleStream.getInitialChunks
(Parse p) Parse.getParent()
Parse[]
Parse.getTagNodes()
Parse[]
Parse.getTokenNodes()
Parse[]
Parse[]
Returns the specified number of parses or fewer for the specified tokens.static Parse
Parse.parseParse
(String parse) Parses the specified tree-bank style parse string and return aParse
structure for that string.static Parse
Parse.parseParse
(String parse, GapLabeler gl) protected final Parse
ParserEvaluator.processSample
(Parse reference) ParseSampleStream.read()
Methoden in opennlp.tools.parser, die Typen mit Argumenten vom Typ Parse zurückgebenModifizierer und TypMethodeBeschreibungParse.getNextPunctuationSet()
Parse.getPreviousPunctuationSet()
Methoden in opennlp.tools.parser mit Parametern vom Typ ParseModifizierer und TypMethodeBeschreibungvoid
static void
Utility method to insert named entities.void
Parse.addNextPunctuation
(Parse punct) Designates that the specified punctuation follows this parse.protected abstract void
AbstractParserEventStream.addParseEvents
(List<Event> newEvents, Parse[] chunks) Produces all events for the specified sentencechunks
and adds them to the specifiednewEvents
list.void
Parse.addPreviousPunctuation
(Parse punct) Designates that the specified punctuation should is prior to this parse.Sister adjoins this node's last child and the specified sister node and returns their new parent node.Parse.adjoinRoot
(Parse node, HeadRules rules, int parseIndex) protected Parse[]
AbstractBottomUpParser.advanceChunks
(Parse p, double minChunkScore) Returns the top chunk sequences for the specifiedParse
.protected abstract Parse[]
AbstractBottomUpParser.advanceParses
(Parse p, double probMass) Advances the specifiedParse
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 theParse
by assigning it POS tags and returns multiple tag sequences.protected abstract void
AbstractBottomUpParser.advanceTop
(Parse p) Adds theAbstractBottomUpParser.TOP_NODE
to the specified parse.protected void
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 specified list.protected void
Clones the right frontier ofParse
up to the specifiednode
.Clones the right frontier of this rootParse
up to and including the specified node.static Parse[]
AbstractBottomUpParser.collapsePunctuation
(Parse[] chunks, Set<String> punctSet) Removes the punctuation from the specified set ofchunks
, adds it to the parses adjacent to the punctuation is specified, and returns a new array of parses with the punctuation removed.int
protected String
protected String
AbstractParserEventStream.createEvents
(Parse sample) void
Parse.expandTopNode
(Parse root) static void
Parse.fixPossesives
(Parse parse) Parse.getCommonParent
(Parse node) Returns the deepest shared parent of this node and the specified node.protected void
AbstractContextGenerator.getFrontierNodes
(List<Parse> rf, Parse[] nodes) Populates specified nodes array with left-most right frontier node with a unique head.Retrieves the headconstituent
for the specified constituents of giventype
.static Parse[]
AbstractParserEventStream.getInitialChunks
(Parse p) static Parse[]
ChunkSampleStream.getInitialChunks
(Parse p) int
void
Inserts the specified constituent into this parse based on its text span.protected boolean
protected int
AbstractBottomUpParser.mapParseIndex
(int index, Parse[] nonPunctParses, Parse[] parses) Parse[]
Parse[]
Returns the specified number of parses or fewer for the specified tokens.protected final Parse
ParserEvaluator.processSample
(Parse reference) protected String
AbstractContextGenerator.production
(Parse p, boolean includePunctuation) Generates a string representing the grammar rule production that the specified parse is starting.static void
Parse.pruneParse
(Parse parse) Prune the specified sentence parse of vacuous productions.protected String
Creates punctuation feature for the specified punctuation at the specified indexi
based on thepunctuation
mark.protected String
Creates punctuation feature for the specified punctuation at the specified indexi
based on thepunctuation
's tag.void
Specifies the parent parse node for this constituent.static void
AbstractBottomUpParser.setParents
(Parse p) Assigns parent references for the specified parse so that they are consistent with the children references.protected void
AbstractContextGenerator.surround
(Parse node, int i, String type, Collection<Parse> punctuation, List<String> features) Generates features for nodes surrounding a completed node of the specifiedtype
.Methodenparameter in opennlp.tools.parser mit Typargumenten vom Typ ParseModifizierer und TypMethodeBeschreibungstatic Dictionary
AbstractBottomUpParser.buildDictionary
(ObjectStream<Parse> data, HeadRules rules, int cutoff) Creates a n-gramDictionary
from the specified data stream usingHeadRules
and specified cut-off.static Dictionary
AbstractBottomUpParser.buildDictionary
(ObjectStream<Parse> data, HeadRules rules, TrainingParameters params) Creates a n-gramDictionary
from the specified data stream using the specified head rule and specified cut-off.protected void
AbstractContextGenerator.cons2
(List<String> features, Cons c0, Cons c1, Collection<Parse> punct1s, boolean bigram) protected void
AbstractContextGenerator.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.void
ParserCrossValidator.evaluate
(ObjectStream<Parse> samples, int nFolds) Starts the evaluation.protected void
AbstractContextGenerator.getFrontierNodes
(List<Parse> rf, Parse[] nodes) Populates specified nodes array with left-most right frontier node with a unique head.void
Parse.setNextPunctuation
(Collection<Parse> punctSet) Sets thepunctuation tags
which follow this parse.void
Parse.setPrevPunctuation
(Collection<Parse> punctSet) Sets thepunctuation tags
which precede this parse.protected void
AbstractContextGenerator.surround
(Parse node, int i, String type, Collection<Parse> punctuation, List<String> features) Generates features for nodes surrounding a completed node of the specifiedtype
.Konstruktoren in opennlp.tools.parser mit Parametern vom Typ ParseModifiziererKonstruktorBeschreibungInitializes anode
for this specifiedtext
andspan
of the specifiedtype
with probabilityp
and the headindex
.Konstruktorparameter in opennlp.tools.parser mit Typargumenten vom Typ ParseModifiziererKonstruktorBeschreibungAbstractParserEventStream
(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype) AbstractParserEventStream
(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict) Initializes ainstance
.Initializes ainstance
. -
Verwendungen von Parse in opennlp.tools.parser.chunking
Methoden in opennlp.tools.parser.chunking, die Parse zurückgebenModifizierer und TypMethodeBeschreibungprotected Parse[]
Parser.advanceParses
(Parse p, double probMass) static Parse[]
ParserEventStream.reduceChunks
(Parse[] chunks, int ci, Parse parent) Methoden in opennlp.tools.parser.chunking mit Parametern vom Typ ParseModifizierer und TypMethodeBeschreibungprotected void
ParserEventStream.addParseEvents
(List<Event> parseEvents, Parse[] chunks) Addsevents
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 void
Parser.advanceTop
(Parse p) protected boolean
ParserEventStream.firstChild
(Parse child, Parse parent) String[]
BuildContextGenerator.getContext
(Parse[] constituents, int index) Finds the predictive context used to determine how constituent at the specifiedindex
should be combined with other constituents.String[]
CheckContextGenerator.getContext
(Parse[] constituents, String type, int start, int end) Finds predictive context for deciding whether the specified constituents between the specifiedstart
andend
index can be combined to form a new constituent of the specifiedtype
.static Parse[]
ParserEventStream.reduceChunks
(Parse[] chunks, int ci, Parse parent) Methodenparameter in opennlp.tools.parser.chunking mit Typargumenten vom Typ ParseModifizierer und TypMethodeBeschreibungstatic ParserModel
Parser.train
(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, TrainingParameters mlParams) Starts a training of aParserModel
.Konstruktorparameter in opennlp.tools.parser.chunking mit Typargumenten vom Typ ParseModifiziererKonstruktorBeschreibungParserEventStream
(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype) ParserEventStream
(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict) -
Verwendungen von Parse in opennlp.tools.parser.lang.en
Methoden in opennlp.tools.parser.lang.en, die Parse zurückgebenModifizierer und TypMethodeBeschreibungMethoden in opennlp.tools.parser.lang.en mit Parametern vom Typ Parse -
Verwendungen von Parse in opennlp.tools.parser.lang.es
Methoden in opennlp.tools.parser.lang.es, die Parse zurückgebenModifizierer und TypMethodeBeschreibungMethoden in opennlp.tools.parser.lang.es mit Parametern vom Typ Parse -
Verwendungen von Parse in opennlp.tools.parser.treeinsert
Methoden in opennlp.tools.parser.treeinsert, die Parse zurückgebenModifizierer und TypMethodeBeschreibungprotected Parse[]
Parser.advanceChunks
(Parse p, double minChunkScore) protected Parse[]
Parser.advanceParses
(Parse p, double probMass) Methoden in opennlp.tools.parser.treeinsert, die Typen mit Argumenten vom Typ Parse zurückgebenModifizierer und TypMethodeBeschreibungParser.getRightFrontier
(Parse root, Set<String> punctSet) Returns the right frontier of the specifiedtree
with nodes ordered from deepest to shallowest.Methoden in opennlp.tools.parser.treeinsert mit Parametern vom Typ ParseModifizierer und TypMethodeBeschreibungprotected void
ParserEventStream.addParseEvents
(List<Event> parseEvents, Parse[] chunks) protected Parse[]
Parser.advanceChunks
(Parse p, double minChunkScore) protected Parse[]
Parser.advanceParses
(Parse p, double probMass) protected void
Parser.advanceTop
(Parse p) String[]
AttachContextGenerator.getContext
(Parse[] constituents, int index, List<Parse> rightFrontier, int rfi) Finds the predictive contextual features about an attachment.String[]
BuildContextGenerator.getContext
(Parse[] constituents, int index) Finds the contexts/features for the decision to build a new constituent for the specified parse at the specifiedindex
.String[]
CheckContextGenerator.getContext
(Parse parent, Parse[] constituents, int index, boolean trimFrontier) Finds the predictive context used to determine how constituent at the specifiedindex
should be combined with aparent
constituent.Parser.getRightFrontier
(Parse root, Set<String> punctSet) Returns the right frontier of the specifiedtree
with nodes ordered from deepest to shallowest.protected boolean
Methodenparameter in opennlp.tools.parser.treeinsert mit Typargumenten vom Typ ParseModifizierer und TypMethodeBeschreibungString[]
AttachContextGenerator.getContext
(Parse[] constituents, int index, List<Parse> rightFrontier, int rfi) Finds the predictive contextual features about an attachment.static ParserModel
Parser.train
(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, int iterations, int cutoff) Starts a training of aParserModel
.static ParserModel
Parser.train
(String languageCode, ObjectStream<Parse> parseSamples, HeadRules rules, TrainingParameters mlParams) Starts a training of aParserModel
.Konstruktorparameter in opennlp.tools.parser.treeinsert mit Typargumenten vom Typ ParseModifiziererKonstruktorBeschreibungParserEventStream
(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype) ParserEventStream
(ObjectStream<Parse> d, HeadRules rules, ParserEventTypeEnum etype, Dictionary dict)