Class DisambiguationRuleLoader
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.languagetool.tagging.disambiguation.rules.DisambiguationRuleLoader
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class DisambiguationRuleLoader extends DefaultHandler
LoadsDisambiguationPatternRule
s from a disambiguation rules XML file.- Author:
- Marcin MiĆkowski
-
-
Constructor Summary
Constructors Constructor Description DisambiguationRuleLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
getRules
public final List<DisambiguationPatternRule> getRules(InputStream stream) throws ParserConfigurationException, SAXException, IOException
-
-