Class ADSentenceStream.SentenceParser

Namespace
NOpenNLP.Tools.Formats.Ad
Assembly
NOpenNLP.Tools.dll

Parses a sample of AD corpus. A sentence in AD corpus is represented by a Tree. In this class we declare some types to represent that tree. Today we get only the first alternative (A1).

public class ADSentenceStream.SentenceParser
Inheritance
ADSentenceStream.SentenceParser
Inherited Members

Methods

GetElement(string)

Parse a tree element from a AD line.

public ADSentenceStream.SentenceParser.TreeElement? GetElement(string line)

Parameters

line string

the AD line

Returns

ADSentenceStream.SentenceParser.TreeElement

the tree element

Parse(string, int, bool, bool)

Parse the sentence.

public ADSentenceStream.Sentence? Parse(string sentenceString, int para, bool isTitle, bool isBox)

Parameters

sentenceString string
para int
isTitle bool
isBox bool

Returns

ADSentenceStream.Sentence