public class TCPRetagger extends UnigramTagger implements PartOfSpeechRetagger
This retagger applies a short list of rules to improve tagging in TCP texts (ECCO, Evans, EEBO).
| Modifier and Type | Field and Description |
|---|---|
protected static PartOfSpeechTags |
posTags
Part of speech tags.
|
contextRules, contextualSmoother, dynamicLexicon, lexicalRules, lexicalSmoother, lexicon, logger, partOfSpeechGuesser, postTokenizer, retagger, ruleCorrections, transitionMatrix| Constructor and Description |
|---|
TCPRetagger()
Create TCP 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, tagWordclearRuleCorrections, 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, usesTransitionProbabilitiescloseclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearRuleCorrections, 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, usesTransitionProbabilitiescloseprotected static PartOfSpeechTags posTags
public <T extends AdornedWord> java.util.List<T> retagSentence(java.util.List<T> sentence)
retagSentence in interface PartOfSpeechRetaggersentence - The sentence as an
AdornedWord .public boolean getCanAddOrDeleteWords()
getCanAddOrDeleteWords in interface PartOfSpeechRetaggerpublic void setCanAddOrDeleteWords(boolean canAddOrDeleteWords)
setCanAddOrDeleteWords in interface PartOfSpeechRetaggercanAddOrDeleteWords - true if retagger can add or
delete words.
Ignored here.
public java.lang.String toString()
toString in class UnigramTagger