Class DisambiguationRuleLoader
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.languagetool.tagging.disambiguation.rules.DisambiguationRuleLoader
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
Loads
DisambiguationPatternRule
s from a disambiguation rules XML
file.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal List
<DisambiguationPatternRule> getRules
(InputStream stream) Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
DisambiguationRuleLoader
public DisambiguationRuleLoader()
-
-
Method Details
-
getRules
public final List<DisambiguationPatternRule> getRules(InputStream stream) throws ParserConfigurationException, SAXException, IOException
-