Package org.languagetool.tagging.fr
Class FrenchTagger
java.lang.Object
org.languagetool.tagging.BaseTagger
org.languagetool.tagging.fr.FrenchTagger
- All Implemented Interfaces:
Tagger
French Tagger
Based on Dicollecte (http://www.dicollecte.org/) implemented in FSA.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FrenchTaggerprivate 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) private voidaddTokens(List<AnalyzedToken> taggedTokens, List<AnalyzedToken> l) booleanIf true, tags from the binary dictionary (*.dict) will be overwritten by manual tags from the plain text dictionary.Returns 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> Methods inherited from class org.languagetool.tagging.BaseTagger
additionalTags, asAnalyzedToken, asAnalyzedTokenList, asAnalyzedTokenListForTaggedWords, createNullToken, createToken, getAnalyzedTokens, getDictionary, getDictionaryPath, getManualAdditionsFileNames, getManualRemovalsFileNames, getWordTagger
-
Field Details
-
INSTANCE
-
VERB
-
PREFIXES_FOR_VERBS
-
NOUN_ADJ
-
PREFIXES_NOUN_ADJ
-
PREFIXES_FOR_NOUN_ADJ
-
ambigousTokens
-
-
Constructor Details
-
FrenchTagger
public FrenchTagger()
-
-
Method Details
-
overwriteWithManualTagger
public boolean overwriteWithManualTagger()Description copied from class:BaseTaggerIf true, tags from the binary dictionary (*.dict) will be overwritten by manual tags from the plain text dictionary.- Overrides:
overwriteWithManualTaggerin classBaseTagger
-
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
-
tagWord
-
additionalTags
-
addTokens
-