public class DefaultPartOfSpeechGuesser extends AbstractPartOfSpeechGuesser implements PartOfSpeechGuesser
This default guesser returns a noun, number or punctuation tag. The lexicon provides the part of speech tags for these items.
abbreviations, auxiliarySpellingStandardizer, auxiliaryWordLists, cachedLexicons, cachedWords, checkPossessives, debug, logger, names, spellingStandardizer, suffixLexicon, tryStandardSpellings, wordLexicon| Constructor and Description |
|---|
DefaultPartOfSpeechGuesser() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,MutableInteger> |
guessPartsOfSpeech(java.util.List<java.lang.String> sentence,
int wordIndex)
Guesses part of speech for a word in a sentence.
|
java.util.Map<java.lang.String,MutableInteger> |
guessPartsOfSpeech(java.lang.String theWord)
Guesses candidate parts of speech for a word.
|
addAuxiliaryWordList, addCachedWord, checkAbbreviation, checkAllUpperCase, checkAuxiliaryWordLists, checkCachedWord, checkCurrency, checkHyphenatedWord, checkName, checkNumber, checkPossessiveNoun, checkPunctuation, checkRomanNumeral, checkStandardSpellings, checkSuffixes, checkSuffixes, checkSymbol, clonePosTagMap, getAuxiliaryWordLists, getCachedLexiconForWord, getLogger, getNoun, getSpellingStandardizer, getStandardizedSpellings, getSuffixLexicon, getWordLexicon, guessPartsOfSpeech, posTagsToMap, posTagToMap, removeCompoundTags, removeProperNounTags, setAbbreviations, setCheckPossessives, setLogger, setSpellingStandardizer, setSuffixLexicon, setTryStandardSpellings, setWordLexiconcloseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAuxiliaryWordList, getAuxiliaryWordLists, getCachedLexiconForWord, getSpellingStandardizer, getSuffixLexicon, getWordLexicon, guessPartsOfSpeech, setAbbreviations, setCheckPossessives, setSpellingStandardizer, setSuffixLexicon, setTryStandardSpellings, setWordLexiconpublic java.util.Map<java.lang.String,MutableInteger> guessPartsOfSpeech(java.lang.String theWord)
guessPartsOfSpeech in interface PartOfSpeechGuesserguessPartsOfSpeech in class AbstractPartOfSpeechGuessertheWord - The word.public java.util.Map<java.lang.String,MutableInteger> guessPartsOfSpeech(java.util.List<java.lang.String> sentence, int wordIndex)
guessPartsOfSpeech in interface PartOfSpeechGuessersentence - Sentence as a list of words.wordIndex - The word index in the sentence.