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

Object
  extended by AbstractRuleDisambiguator
All Implemented Interfaces:
Disambiguator
Direct Known Subclasses:
DutchRuleDisambiguator, EnglishRuleDisambiguator, FrenchRuleDisambiguator, PolishRuleDisambiguator, RomanianRuleDisambiguator, RussianRuleDisambiguator

public abstract class AbstractRuleDisambiguator
extends Object
implements Disambiguator

Rule-based disambiguator. Implements an idea by Agnes Souque.

Author:
Marcin MiƂkowski

Constructor Summary
AbstractRuleDisambiguator()
           
 
Method Summary
abstract  AnalyzedSentence disambiguate(AnalyzedSentence input)
          If possible, filters out the wrong POS tags.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRuleDisambiguator

public AbstractRuleDisambiguator()
Method Detail

disambiguate

public abstract AnalyzedSentence disambiguate(AnalyzedSentence input)
                                       throws IOException
Description copied from interface: Disambiguator
If possible, filters out the wrong POS tags.

Specified by:
disambiguate in interface Disambiguator
Parameters:
input - The sentence with already tagged words. The words are expected to have multiple tags.
Returns:
Analyzed sentence, where each word has only one (possibly the most correct) tag.
Throws:
IOException


Copyright © 2005-2009 Daniel Naber