public class BigramHybridTagger extends BigramTagger implements PartOfSpeechTagger
This bigram part of speech tagger assigns tags to words in a sentence assigning the most probable set of tags given the previous tag assignments. The Viterbi algorithm is used to reduce the amount of computation required to find the optimal tag assignments. The Hepple rule-based tagger is used to apply corrections to each sentence after the bigram tagger has assigned the initial set of tags.
beamSearchRejections, contextualProbabilities, debug, viterbi
contextRules, contextualSmoother, dynamicLexicon, lexicalRules, lexicalSmoother, lexicon, logger, partOfSpeechGuesser, postTokenizer, retagger, ruleCorrections, transitionMatrix
Constructor and Description |
---|
BigramHybridTagger()
Create a bigram hybrid tagger.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Return tagger description.
|
boolean |
usesContextRules()
See if tagger uses contextual rules.
|
processWord, setLogger, tagAdornedWordList, tagSentences, usesTransitionProbabilities
clearRuleCorrections, createPartOfSpeechGuesser, getContextualSmoother, getDynamicLexicon, getLexicalSmoother, getLexicon, getLexicon, getLogger, getMostCommonTag, getPartOfSpeechGuesser, getPostTokenizer, getRetagger, getRuleCorrections, getTagCount, getTagsForWord, getTransitionMatrix, incrementRuleCorrections, retagWords, setContextRules, setContextualSmoother, setLexicalRules, setLexicalSmoother, setLexicon, setPartOfSpeechGuesser, setPostTokenizer, setRetagger, setTransitionMatrix, tagAdornedWordSentence, tagAdornedWordSentences, tagSentence, usesLexicalRules
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, usesLexicalRules, usesTransitionProbabilities
close
public boolean usesContextRules()
usesContextRules
in interface PartOfSpeechTagger
usesContextRules
in class AbstractPartOfSpeechTagger
public java.lang.String toString()
toString
in class BigramTagger