/** * Add the required views to the {@link TextAnnotation}. * * @param ta The {@link TextAnnotation} to be annotated * @return Whether new views were added */ public boolean annotate(TextAnnotation ta) throws AnnotatorException { boolean addedViews = false; for (String view : annotator.getAvailableViews()) { if (ta.hasView(view)) continue; annotator.addView(ta, view); addedViews = true; } return addedViews; } }
/** * Add the required views to the {@link TextAnnotation}. * * @param ta The {@link TextAnnotation} to be annotated * @return Whether new views were added */ public boolean annotate(TextAnnotation ta) throws AnnotatorException { boolean addedViews = false; for (String view : annotator.getAvailableViews()) { if (ta.hasView(view)) continue; annotator.addView(ta, view); addedViews = true; } return addedViews; } }
for (String view : pipeline.getAvailableViews()) { viewsString += ", " + view;
for (String view : pipeline.getAvailableViews()) { viewsString += ", " + view;
for(String view : pipeline.getAvailableViews()) { viewsString += ", " + view;
for(String view : pipeline.getAvailableViews()) { viewsString += ", " + view;