@Test public void testSentences() { final List<String> expected = Arrays.asList(new String[] { "Des Knaben Wunderhorn.", "Alte deutsche Lieder gesammelt von L. A. v. Arnim und Clemens Brentano.", "Des Knaben Wunderhorn Alte deutsche Lieder L. Achim v. Arnim.", "Clemens Brentano.", "Heidelberg, bei Mohr u. Zimmer." }); for (Version version : Version.values()) { List<String> actual = new ArrayList<>(); try { final JCas jcas = process(true, version); final FSIterator<Annotation> iter = jcas .getAnnotationIndex(Sentence.type).iterator(); while (iter.hasNext()) actual.add(iter.next().getCoveredText()); assertEquals(expected, actual); } 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; }