Package org.languagetool.tagging.pt
Class PortugueseTagger
java.lang.Object
org.languagetool.tagging.BaseTagger
org.languagetool.tagging.pt.PortugueseTagger
- All Implemented Interfaces:
Tagger
Portuguese Part-of-speech tagger.
Based on English tagger.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Patternprivate static final Patternprivate static final Patternprivate static final Patternprivate static final Patternprivate static final Patternprivate static final Patternprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate 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 TypeMethodDescriptionprivate voidaddTokens(List<AnalyzedToken> taggedTokens, List<AnalyzedToken> l) private AnalyzedTokenbuildMascPlNoun(String word) private List<AnalyzedToken> buildOrdinalTokens(String word) private booleanprivate booleanprivate booleanReturns a list ofAnalyzedTokens that assigns each term in the sentence some kind of part-of-speech information (not necessarily just one tag).private List<AnalyzedToken> tagMenteAdverbs(String word, String lowerWord, morfologik.stemming.IStemmer dictLookup) private List<AnalyzedToken> tagNumberExpressions(String word) private List<AnalyzedToken> tagPrefixedVerbs(String word, morfologik.stemming.IStemmer dictLookup) Methods inherited from class org.languagetool.tagging.BaseTagger
additionalTags, asAnalyzedToken, asAnalyzedTokenList, asAnalyzedTokenListForTaggedWords, createNullToken, createToken, getAnalyzedTokens, getDictionary, getDictionaryPath, getManualAdditionsFileNames, getManualRemovalsFileNames, getWordTagger, overwriteWithManualTagger
-
Field Details
-
ADJ_PART_FS
-
VERB
-
PREFIXES_FOR_VERBS
-
ORDINAL_SUFFIX_MASC
- See Also:
-
ORDINAL_SUFFIX_FEM
- See Also:
-
ORDINAL_SUFFIX_PL
- See Also:
-
ORDINAL_SUFFIXES
-
ORDINAL_PATTERN
-
ORDINAL_MASC_SG
-
ORDINAL_FEM_SG
-
ORDINAL_MASC_PL
-
ORDINAL_FEM_PL
-
PERCENT_PATTERN
-
DEGREE_PATTERN
-
-
Constructor Details
-
PortugueseTagger
public PortugueseTagger()
-
-
Method Details
-
tagNumberExpressions
-
buildMascPlNoun
-
buildOrdinalTokens
-
isOrdinal
-
isPercent
-
isDegree
-
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
-
tagMenteAdverbs
private List<AnalyzedToken> tagMenteAdverbs(String word, String lowerWord, morfologik.stemming.IStemmer dictLookup) -
tagPrefixedVerbs
-
addTokens
-