edu.northwestern.at.utils.corpuslinguistics.postagger.affix
Class AffixTagger

java.lang.Object
  extended by edu.northwestern.at.utils.IsCloseableObject
      extended by edu.northwestern.at.utils.corpuslinguistics.postagger.AbstractPartOfSpeechTagger
          extended by edu.northwestern.at.utils.corpuslinguistics.postagger.unigram.UnigramTagger
              extended by edu.northwestern.at.utils.corpuslinguistics.postagger.affix.AffixTagger
All Implemented Interfaces:
UsesLexicon, CanTagOneWord, PartOfSpeechTagger, IsCloseable, UsesLogger

public class AffixTagger
extends UnigramTagger
implements PartOfSpeechTagger, CanTagOneWord

Affix Part of Speech tagger.

The affix part of speech tagger uses an affix lexicon to assign a part of speech tag to a spelling based upon the prefixes or suffixes of the spelling.


Field Summary
 
Fields inherited from class edu.northwestern.at.utils.corpuslinguistics.postagger.AbstractPartOfSpeechTagger
contextRules, contextualSmoother, dynamicLexicon, lexicalRules, lexicalSmoother, lexicon, logger, partOfSpeechGuesser, postTokenizer, retagger, ruleCorrections, transitionMatrix
 
Constructor Summary
AffixTagger()
          Create a affix tagger.
 
Method Summary
 java.lang.String tagWord(java.lang.String word)
          Tag a single word.
 java.lang.String toString()
          Return tagger description.
 
Methods inherited from class edu.northwestern.at.utils.corpuslinguistics.postagger.unigram.UnigramTagger
tagAdornedWordList, tagWord
 
Methods inherited from class edu.northwestern.at.utils.corpuslinguistics.postagger.AbstractPartOfSpeechTagger
clearRuleCorrections, createPartOfSpeechGuesser, getDynamicLexicon, getLexicon, getLexicon, getLogger, getMostCommonTag, getPartOfSpeechGuesser, getRetagger, getRuleCorrections, getTagCount, getTagsForWord, getTransitionMatrix, incrementRuleCorrections, retagWords, setContextRules, setLexicalRules, setLexicon, setLogger, setPartOfSpeechGuesser, setRetagger, setTransitionMatrix, tagAdornedWordSentence, tagAdornedWordSentences, tagSentence, tagSentences, usesContextRules, usesLexicalRules, usesTransitionProbabilities
 
Methods inherited from class edu.northwestern.at.utils.IsCloseableObject
close
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.northwestern.at.utils.corpuslinguistics.postagger.PartOfSpeechTagger
clearRuleCorrections, getLexicon, getLexicon, getPartOfSpeechGuesser, getRetagger, getRuleCorrections, getTagCount, getTagsForWord, getTransitionMatrix, incrementRuleCorrections, retagWords, setContextRules, setLexicalRules, setLexicon, setPartOfSpeechGuesser, setRetagger, setTransitionMatrix, tagAdornedWordList, tagAdornedWordSentence, tagAdornedWordSentences, tagSentence, tagSentences, usesContextRules, usesLexicalRules, usesTransitionProbabilities
 
Methods inherited from interface edu.northwestern.at.utils.corpuslinguistics.postagger.CanTagOneWord
tagWord
 
Methods inherited from interface edu.northwestern.at.utils.IsCloseable
close
 

Constructor Detail

AffixTagger

public AffixTagger()
Create a affix tagger.

Method Detail

tagWord

public java.lang.String tagWord(java.lang.String word)
Tag a single word.

Specified by:
tagWord in interface CanTagOneWord
Overrides:
tagWord in class UnigramTagger
Parameters:
word - The word.
Returns:
The part of speech for the word.

toString

public java.lang.String toString()
Return tagger description.

Overrides:
toString in class UnigramTagger
Returns:
Tagger description.