@Test public void testPOS() { final String expected = "ART NN NN $. ADJA ADJA NN VVPP APPR NE NE APPR NE KON NE NE $. " + "ART NN NN ADJA ADJA NN NE NE APPRART NE $. FM.la FM.la $. NE $, APPR NN APPR NN $."; for (Version version : Version.values()) { StringBuilder actual = new StringBuilder(); try { final JCas jcas = process(true, version); final FSIterator<Annotation> iter = jcas .getAnnotationIndex(STTSPOSTag.type).iterator(); while (iter.hasNext()) actual.append(((STTSPOSTag) iter.next()).getValue()) .append(" "); assertEquals(expected, actual.substring(0, actual.length() - 1)); } catch (final Exception e) { e.printStackTrace(); System.out.println(version); 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; }