DummyTagger implements GenericTagger { @Override public String label(Iterable<String> data) { final List<String> output = new ArrayList<>(); data.forEach(d -> output.add(d + "\t" + DUMMY_LABEL)); return Joiner.on('\n').join(output); } 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_shouldReturnDummyLabel() { assertThat(target.label("bao"), is("<dummy>")); }