TaggerFactory { public static synchronized GenericTagger getTagger(GrobidModel model) { return getTagger(model, GrobidProperties.getGrobidCRFEngine(model)); } private  TaggerFactory(); static synchronized GenericTagger getTagger(GrobidModel model); static synchronized GenericTagger getTagger(GrobidModel model, GrobidCRFEngine engine); static final Logger LOGGER; }
@Test public void testGetTagger_shouldReturnDummyTagger() { GenericTagger tagger = TaggerFactory.getTagger(GrobidModels.DUMMY); assertThat(tagger instanceof DummyTagger, is(true)); }
@Test public void testGetDelftTagger_existingModel_shouldReturn() { GenericTagger tagger = TaggerFactory.getTagger(GrobidModels.HEADER, GrobidCRFEngine.DELFT); assertThat(tagger instanceof DeLFTTagger, is(true)); }
@Test public void testGetWapitiTagger_existingModel_shouldReturn() { GenericTagger tagger = TaggerFactory.getTagger(GrobidModels.DATE, GrobidCRFEngine.WAPITI); assertThat(tagger instanceof WapitiTagger, is(true)); }