DummyTagger implements GenericTagger { public DummyTagger(GrobidModel model) { if(!model.equals(GrobidModels.DUMMY)) { throw new GrobidException("Cannot use a non-dummy model with the dummy tagger. All dummies or no dummies. "); } } DummyTagger(GrobidModel model); @Override String label(Iterable<String> data); @Override String label(String data); @Override void close(); static final String DUMMY_LABEL; }
@Test public void testDummyTagger() { assertThat(target.label(Arrays.asList("bao", "miao", "ciao")), is(equalTo("bao\t<dummy>\nmiao\t<dummy>\nciao\t<dummy>"))); }