opennlp.tools.formats.ad
Class ADParagraphStream.ParagraphParser

java.lang.Object
  extended by opennlp.tools.formats.ad.ADParagraphStream.ParagraphParser
Enclosing class:
ADParagraphStream

public static class ADParagraphStream.ParagraphParser
extends java.lang.Object

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.


Nested Class Summary
 class ADParagraphStream.ParagraphParser.Leaf
          Represents the AD leaf
 class ADParagraphStream.ParagraphParser.Node
          Represents the AD node
 class ADParagraphStream.ParagraphParser.TreeElement
          Represents a tree element, Node or Leaf
 
Constructor Summary
ADParagraphStream.ParagraphParser()
           
 
Method Summary
 ADParagraphStream.ParagraphParser.TreeElement getElement(java.lang.String line)
          Parse a tree element from a AD line
 ADParagraphStream.Paragraph parse(java.lang.String paragraphString)
          Parse the paragraph
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ADParagraphStream.ParagraphParser

public ADParagraphStream.ParagraphParser()
Method Detail

parse

public ADParagraphStream.Paragraph parse(java.lang.String paragraphString)
Parse the paragraph


getElement

public ADParagraphStream.ParagraphParser.TreeElement getElement(java.lang.String line)
Parse a tree element from a AD line

Parameters:
line - the AD line
Returns:
the tree element


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.