Class ParserEventStream
- Namespace
- NOpenNLP.Tools.Parser.Treeinsert
- Assembly
- NOpenNLP.Tools.dll
public class ParserEventStream : AbstractParserEventStream, IObjectStream<Event?>, IDisposable
- Inheritance
-
ParserEventStream
- Implements
- Inherited Members
Constructors
ParserEventStream(IObjectStream<Parse?>, IHeadRules, ParserEventTypeEnum)
public ParserEventStream(IObjectStream<Parse?> d, IHeadRules rules, ParserEventTypeEnum etype)
Parameters
dIObjectStream<Parse>rulesIHeadRulesetypeParserEventTypeEnum
ParserEventStream(IObjectStream<Parse?>, IHeadRules, ParserEventTypeEnum, Dictionary?)
public ParserEventStream(IObjectStream<Parse?> d, IHeadRules rules, ParserEventTypeEnum etype, Dictionary? dict)
Parameters
dIObjectStream<Parse>rulesIHeadRulesetypeParserEventTypeEnumdictDictionary
Fields
attachContextGenerator
protected AttachContextGenerator attachContextGenerator
Field Value
buildContextGenerator
protected BuildContextGenerator buildContextGenerator
Field Value
checkContextGenerator
protected CheckContextGenerator checkContextGenerator
Field Value
Methods
AddParseEvents(IList<Event>, Parse[])
Produces all events for the specified sentence chunks and adds them to the specified list.
protected override void AddParseEvents(IList<Event> parseEvents, Parse[] chunks)
Parameters
Init()
protected override void Init()
LastChild(Parse, Parse)
Returns true if the specified child is the last child of the specified parent.
protected override bool LastChild(Parse child, Parse parent)
Parameters
Returns
- bool
true if the specified child is the last child of the specified parent; false otherwise.