|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.tools.formats.ad.ADSentenceStream.SentenceParser
public static 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).
Nested Class Summary | |
---|---|
class |
ADSentenceStream.SentenceParser.Leaf
Represents the AD leaf |
class |
ADSentenceStream.SentenceParser.Node
Represents the AD node |
class |
ADSentenceStream.SentenceParser.TreeElement
Represents a tree element, Node or Leaf |
Constructor Summary | |
---|---|
ADSentenceStream.SentenceParser()
|
Method Summary | |
---|---|
ADSentenceStream.SentenceParser.TreeElement |
getElement(String line)
Parse a tree element from a AD line |
ADSentenceStream.Sentence |
parse(String sentenceString,
int para,
boolean isTitle,
boolean isBox)
Parse the sentence |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ADSentenceStream.SentenceParser()
Method Detail |
---|
public ADSentenceStream.Sentence parse(String sentenceString, int para, boolean isTitle, boolean isBox)
public ADSentenceStream.SentenceParser.TreeElement getElement(String line)
line
- the AD line
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |