public interface PartOfSpeechRetagger extends PartOfSpeechTagger
A retagger takes the output of another tagger and retags the words. Normally this is used to apply fixup rules to the output of a statistical tagger.
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?
|
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
<T extends AdornedWord> java.util.List<T> retagSentence(java.util.List<T> sentence)
sentence
- The sentence as an
AdornedWord
.boolean getCanAddOrDeleteWords()
void setCanAddOrDeleteWords(boolean canAddOrDeleteWords)
canAddOrDeleteWords
- true if retagger can add or
delete words.