public class AllUnknownTagger extends AbstractPartOfSpeechTagger implements PartOfSpeechTagger, CanTagOneWord
The all unknown part of speech tagger assigns an "unknown" type part of speech to all words.
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
unknownPOS
Unknown part of speech tag.
|
contextRules, contextualSmoother, dynamicLexicon, lexicalRules, lexicalSmoother, lexicon, logger, partOfSpeechGuesser, postTokenizer, retagger, ruleCorrections, transitionMatrix| Constructor and Description |
|---|
AllUnknownTagger()
Create all unknown tagger.
|
AllUnknownTagger(java.lang.String unknownPOS)
Create all unknown tagger.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends AdornedWord> |
tagAdornedWordList(java.util.List<T> sentence)
Tag a sentence.
|
java.lang.String |
tagWord(AdornedWord word)
Tag a single adorned word.
|
java.lang.String |
tagWord(java.lang.String word)
Tag a single word.
|
java.lang.String |
toString()
Return tagger description.
|
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, 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, tagAdornedWordSentence, tagAdornedWordSentences, tagSentence, tagSentences, usesContextRules, usesLexicalRules, usesTransitionProbabilitiescloseprotected static java.lang.String unknownPOS
public AllUnknownTagger()
public AllUnknownTagger(java.lang.String unknownPOS)
unknownPOS - Part of speech for unknown word.public <T extends AdornedWord> java.util.List<T> tagAdornedWordList(java.util.List<T> sentence)
tagAdornedWordList in interface PartOfSpeechTaggertagAdornedWordList in class AbstractPartOfSpeechTaggersentence - The sentence as an AdornedWordpublic java.lang.String tagWord(java.lang.String word)
tagWord in interface CanTagOneWordword - The word.public java.lang.String tagWord(AdornedWord word)
tagWord in interface CanTagOneWordword - The adorned word.public java.lang.String toString()
toString in class java.lang.Object