public class NoopRetagger extends UnigramTagger implements PartOfSpeechRetagger
This retagger does nothing to the original part of speech tagging.
contextRules, contextualSmoother, dynamicLexicon, lexicalRules, lexicalSmoother, lexicon, logger, partOfSpeechGuesser, postTokenizer, retagger, ruleCorrections, transitionMatrix
Constructor and Description |
---|
NoopRetagger()
Create noop retagger.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getCanAddOrDeleteWords()
Can retagger add or delete words in the original sentence?
|
<T extends AdornedWord> |
retagSentence(java.util.List<T> sentence)
Retag a sentence.
|
void |
setCanAddOrDeleteWords(boolean canAddOrDeleteWords)
Can retagger add or delete words in the original sentence?
|
java.lang.String |
toString()
Return retagger description.
|
tagAdornedWordList, tagWord, tagWord
clearRuleCorrections, createPartOfSpeechGuesser, getContextualSmoother, getDynamicLexicon, getLexicalSmoother, getLexicon, getLexicon, getLogger, getMostCommonTag, getPartOfSpeechGuesser, getPostTokenizer, getRetagger, getRuleCorrections, getTagCount, getTagsForWord, getTransitionMatrix, incrementRuleCorrections, retagWords, setContextRules, setContextualSmoother, setLexicalRules, setLexicalSmoother, setLexicon, setLogger, setPartOfSpeechGuesser, setPostTokenizer, setRetagger, setTransitionMatrix, tagAdornedWordSentence, tagAdornedWordSentences, tagSentence, tagSentences, usesContextRules, usesLexicalRules, usesTransitionProbabilities
close
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clearRuleCorrections, getContextualSmoother, getLexicalSmoother, getLexicon, getLexicon, getPartOfSpeechGuesser, getPostTokenizer, getRetagger, getRuleCorrections, getTagCount, getTagsForWord, getTransitionMatrix, incrementRuleCorrections, retagWords, setContextRules, setContextualSmoother, setLexicalRules, setLexicalSmoother, setLexicon, setPartOfSpeechGuesser, setPostTokenizer, setRetagger, setTransitionMatrix, tagAdornedWordList, tagAdornedWordSentence, tagAdornedWordSentences, tagSentence, tagSentences, usesContextRules, usesLexicalRules, usesTransitionProbabilities
close
public <T extends AdornedWord> java.util.List<T> retagSentence(java.util.List<T> sentence)
retagSentence
in interface PartOfSpeechRetagger
sentence
- The sentence as an
AdornedWord
.public boolean getCanAddOrDeleteWords()
getCanAddOrDeleteWords
in interface PartOfSpeechRetagger
public void setCanAddOrDeleteWords(boolean canAddOrDeleteWords)
setCanAddOrDeleteWords
in interface PartOfSpeechRetagger
canAddOrDeleteWords
- true if retagger can add or
delete words.
Ignored here.
public java.lang.String toString()
toString
in class UnigramTagger