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.txtremovalTagger - the tagger that removes readings which takes its data from the plain text file removed.txt, or nulloverwriteWithSecondTagger - 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 WordTaggerword - the word to be tagged@Nullable public WordTagger getRemovalTagger()