@Test public void testEntities() throws Exception { BaleenCollectionReader bcr = getCollectionReader( Re3dReader.PARAM_FOLDER, tmpDir.toAbsolutePath().toString(), Re3dReader.PARAM_ENTITIES, true, Re3dReader.PARAM_RANDOM_DATES, true); assertTrue(bcr.doHasNext()); bcr.getNext(jCas.getCas()); AnnotationIndex<Entity> annotationIndex = jCas.getAnnotationIndex(Entity.class); contains(annotationIndex, e -> e.getValue().equals("Location")); contains(annotationIndex, e -> e.getBegin() == 100); contains(annotationIndex, e -> e.getEnd() == 118); contains(annotationIndex, e -> e.getValue().equals("Organisation Ltd")); contains(annotationIndex, e -> e.getBegin() == 12); contains(annotationIndex, e -> e.getEnd() == 18); bcr.close(); }
@Override public boolean doHasNext() throws IOException, CollectionException { return !documents.isEmpty(); }
Re3dReader extends BaleenCollectionReader { @Override public boolean doHasNext() throws IOException, CollectionException { return !documents.isEmpty(); } }
Re3dReader extends BaleenCollectionReader { @Override public boolean doHasNext() throws IOException, CollectionException { return !documents.isEmpty(); }  }
Re3dReader extends BaleenCollectionReader { @Override public boolean doHasNext() throws IOException, CollectionException { return !documents.isEmpty(); }  @Override boolean doHasNext(); }
Re3dReader extends BaleenCollectionReader { @Override public boolean doHasNext() throws IOException, CollectionException { return !documents.isEmpty(); }  @Override boolean doHasNext(); static final String PARAM_FOLDER; static final String PARAM_ENTITIES; static final String PARAM_RELATIONSHIPS; static final String PARAM_RANDOM_DATES; }