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

d IObjectStream<Parse>
rules IHeadRules
etype ParserEventTypeEnum

ParserEventStream(IObjectStream<Parse?>, IHeadRules, ParserEventTypeEnum, Dictionary?)

public ParserEventStream(IObjectStream<Parse?> d, IHeadRules rules, ParserEventTypeEnum etype, Dictionary? dict)

Parameters

d IObjectStream<Parse>
rules IHeadRules
etype ParserEventTypeEnum
dict Dictionary

Fields

attachContextGenerator

protected AttachContextGenerator attachContextGenerator

Field Value

AttachContextGenerator

buildContextGenerator

protected BuildContextGenerator buildContextGenerator

Field Value

BuildContextGenerator

checkContextGenerator

protected CheckContextGenerator checkContextGenerator

Field Value

CheckContextGenerator

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

parseEvents IList<Event>
chunks Parse[]

Pre-chunked constituents of a sentence.

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

child Parse

The child parse.

parent Parse

The parent parse.

Returns

bool

true if the specified child is the last child of the specified parent; false otherwise.