public class CombiningTagger extends Object implements WordTagger
Constructor and Description |
---|
CombiningTagger(WordTagger tagger1,
WordTagger tagger2,
boolean overwriteWithSecondTagger) |
CombiningTagger(WordTagger tagger1,
WordTagger tagger2,
WordTagger removalTagger,
boolean overwriteWithSecondTagger) |
Modifier and Type | Method and Description |
---|---|
WordTagger |
getRemovalTagger() |
List<TaggedWord> |
tag(String word) |
public CombiningTagger(WordTagger tagger1, WordTagger tagger2, boolean overwriteWithSecondTagger)
public CombiningTagger(WordTagger tagger1, WordTagger tagger2, WordTagger removalTagger, boolean overwriteWithSecondTagger)
tagger1
- typically the tagger that takes its data from the binary filetagger2
- typically the tagger that takes its data from the plain text file added.txt
removalTagger
- the tagger that removes readings which takes its data from the plain text file removed.txt
, or null
overwriteWithSecondTagger
- if set to true
, only the second tagger's result will be
used if both first and second tagger can tag that wordpublic List<TaggedWord> tag(String word)
tag
in interface WordTagger
word
- the word to be tagged@Nullable public WordTagger getRemovalTagger()