opennlp.tools.formats.muc
Class SgmlParser

java.lang.Object
  extended by opennlp.tools.formats.muc.SgmlParser

public class SgmlParser
extends Object

SAX style SGML parser.

Note:
The implementation is very limited, but good enough to parse the MUC corpora. Its must very likely be extended/improved/fixed to parse a different SGML corpora.


Nested Class Summary
static class SgmlParser.ContentHandler
           
 
Constructor Summary
SgmlParser()
           
 
Method Summary
 void parse(Reader in, SgmlParser.ContentHandler handler)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SgmlParser

public SgmlParser()
Method Detail

parse

public void parse(Reader in,
                  SgmlParser.ContentHandler handler)
           throws IOException
Throws:
IOException


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