Class ADSentenceStream.SentenceParser
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
linestringthe 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)