de.danielnaber.languagetool.tagging.disambiguation.rules
Class DisambiguationRuleLoader

Object
  extended by DefaultHandler
      extended by DisambiguationRuleLoader
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class DisambiguationRuleLoader
extends DefaultHandler

Loads DisambiguationPatternRules from a disambiguation rules XML file.

Author:
Marcin MiƂkowski

Constructor Summary
DisambiguationRuleLoader()
           
 
Method Summary
 List<DisambiguationPatternRule> getRules(InputStream file)
           
 
Methods inherited from class DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisambiguationRuleLoader

public DisambiguationRuleLoader()
Method Detail

getRules

public final List<DisambiguationPatternRule> getRules(InputStream file)
                                               throws ParserConfigurationException,
                                                      SAXException,
                                                      IOException
Throws:
ParserConfigurationException
SAXException
IOException


Copyright © 2005-2007 Daniel Naber