Interface IHeadRules

Namespace
NOpenNLP.Tools.Parser
Assembly
NOpenNLP.Tools.dll

Interface for encoding the head rules associated with parsing.

public interface IHeadRules

Properties

PunctuationTags

Returns the set of punctuation tags. Attachment decisions for these tags will not be modeled.

ISet<string> PunctuationTags { get; }

Property Value

ISet<string>

Methods

GetHead(Parse[], string)

Returns the head constituent for the specified constituents of the specified type.

Parse? GetHead(Parse[] constituents, string type)

Parameters

constituents Parse[]

The constituents which make up a constituent of the specified type.

type string

The type of a constituent which is made up of the specified constituents.

Returns

Parse

The constituent which is the head.