Package org.languagetool.tagging.es
Class SpanishTagger
java.lang.Object
org.languagetool.tagging.BaseTagger
org.languagetool.tagging.es.SpanishTagger
- All Implemented Interfaces:
Tagger
Spanish Tagger.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Patternprivate static final Patternprivate static final Patternprivate static final Patternstatic final SpanishTaggerprivate static final Patternprivate static final Patternprivate static final Patternprivate static final Patternprivate static final Patternprivate static final PatternFields inherited from class org.languagetool.tagging.BaseTagger
locale, wordTagger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<AnalyzedToken> additionalTags(String word, morfologik.stemming.IStemmer stemmer) private voidaddTokens(List<AnalyzedToken> taggedTokens, List<AnalyzedToken> l) Returns a list ofAnalyzedTokens that assigns each term in the sentence some kind of part-of-speech information (not necessarily just one tag).Methods inherited from class org.languagetool.tagging.BaseTagger
additionalTags, asAnalyzedToken, asAnalyzedTokenList, asAnalyzedTokenListForTaggedWords, createNullToken, createToken, getAnalyzedTokens, getDictionary, getDictionaryPath, getManualAdditionsFileNames, getManualRemovalsFileNames, getWordTagger, overwriteWithManualTagger
-
Field Details
-
INSTANCE
-
ADJ_PART_FS
-
VERB
-
PREFIXES_FOR_VERBS
-
PREFIXES_FOR_VERBS2
-
PREFIXES_FOR_ADJ
-
ADJ
-
ADJ_MS
-
NO_PREFIXES_FOR_ADJ
-
PREFIXES_FOR_ADJECTIVES
-
ADJ_VP
-
-
Constructor Details
-
SpanishTagger
public SpanishTagger()
-
-
Method Details
-
tag
Description copied from interface:TaggerReturns a list ofAnalyzedTokens that assigns each term in the sentence some kind of part-of-speech information (not necessarily just one tag).Note that this method takes exactly one sentence. Its implementation may implement special cases for the first word of a sentence, which is usually written with an uppercase letter.
- Specified by:
tagin interfaceTagger- Overrides:
tagin classBaseTagger- Parameters:
sentenceTokens- the text as returned by a WordTokenizer
-
additionalTags
@Nullable protected List<AnalyzedToken> additionalTags(String word, morfologik.stemming.IStemmer stemmer) -
addTokens
-