@Test public void testLemmata() { final String expected = "d Knabe Wunderhorn . alt deutsch Lied sammeln von L. A. v. Arnim und " + "Clemens Brentano . d Knabe Wunderhorn alt deutsch Lied L. Achim v. Arnim . " + "clemens brentano . Heidelberg , bei Mohr u. Zimmer ."; for (Version version : Version.values()) { StringBuilder actual = new StringBuilder(); try { final JCas jcas = process(true, version); final FSIterator<Annotation> iter = jcas .getAnnotationIndex(Lemma.type).iterator(); while (iter.hasNext()) actual.append(((Lemma) iter.next()).getValue()).append(" "); assertEquals(expected, actual.substring(0, actual.length() - 1)); } catch (final Exception e) { e.printStackTrace(); fail(); } } }
@Override public boolean hasNext() throws IOException, CollectionException { return counter < inputFiles.size(); }
DTAFileReader extends CollectionReader_ImplBase { @Override public boolean hasNext() throws IOException, CollectionException { return counter < inputFiles.size(); } }
DTAFileReader extends CollectionReader_ImplBase { @Override public boolean hasNext() throws IOException, CollectionException { return counter < inputFiles.size(); }  }
DTAFileReader extends CollectionReader_ImplBase { @Override public boolean hasNext() throws IOException, CollectionException { return counter < inputFiles.size(); }  @Override void close(); @Override void getNext(final CAS aCAS); @Override Progress[] getProgress(); @Override boolean hasNext(); @Override void initialize(); }
DTAFileReader extends CollectionReader_ImplBase { @Override public boolean hasNext() throws IOException, CollectionException { return counter < inputFiles.size(); }  @Override void close(); @Override void getNext(final CAS aCAS); @Override Progress[] getProgress(); @Override boolean hasNext(); @Override void initialize(); static final String PARAM_INPUTFILE; static final String PARAM_NORMALIZE; static final String PARAM_FORMAT_2017; }