@Override public void rememberFeatures() { if (getSelection().isArc()) { this.rememberedArcLayer = getSelectedAnnotationLayer(); setRememberedArcFeatures(featureModels); } else { this.rememberedSpanLayer = getSelectedAnnotationLayer(); setRememberedSpanFeatures(featureModels); } }
default void moveToSelection(JCas aJCas) { moveToOffset(aJCas, getSelection().getBegin()); }
@Override public void clearRememberedFeatures() { setRememberedArcFeatures(null); this.rememberedArcLayer = null; setRememberedSpanFeatures(null); this.rememberedSpanLayer = null; }
public Argument(String aLabel, int aTarget) { // REC: It is fully ok that we only have "int" as the type for target, since right now only // spans can be the target of an argument. However, we internally wrap this as a VID // in order to always use the same identifier type when talking with brat (VID renders as // as String value, while "int" would render as a numeric value). this(aLabel, new VID(aTarget)); }
public void reset(AjaxRequestTarget aTarget) { AnnotatorState state = getModelObject(); state.getSelection().clear(); clearFeatureEditorModels(aTarget); }
public void selectSpan(JCas aJCas, int aBegin, int aEnd) { selectSpan(VID.NONE_ID, aJCas, aBegin, aEnd); }
public boolean isNotSet() { return !isSet(); }
public Selection copy() { Selection sel = new Selection(); sel.arc = arc; sel.originSpanId = originSpanId; sel.targetSpanId = targetSpanId; sel.beginOffset = beginOffset; sel.endOffset = endOffset; sel.selectedAnnotationId = selectedAnnotationId; sel.text = text; return sel; }
public Argument(String aLabel, int aTarget) { // REC: It is fully ok that we only have "int" as the type for target, since right now only // spans can be the target of an argument. However, we internally wrap this as a VID // in order to always use the same identifier type when talking with brat (VID renders as // as String value, while "int" would render as a numeric value). this(aLabel, new VID(aTarget)); }
@Override public void rememberFeatures() { if (getSelection().isArc()) { this.rememberedArcLayer = getSelectedAnnotationLayer(); setRememberedArcFeatures(featureModels); } else { this.rememberedSpanLayer = getSelectedAnnotationLayer(); setRememberedSpanFeatures(featureModels); } }
default void moveToSelection(JCas aJCas) { moveToOffset(aJCas, getSelection().getBegin()); }
public boolean isNotSet() { return !isSet(); }
@Override public void clearRememberedFeatures() { setRememberedArcFeatures(null); this.rememberedArcLayer = null; setRememberedSpanFeatures(null); this.rememberedSpanLayer = null; }
public Selection copy() { Selection sel = new Selection(); sel.arc = arc; sel.originSpanId = originSpanId; sel.targetSpanId = targetSpanId; sel.beginOffset = beginOffset; sel.endOffset = endOffset; sel.selectedAnnotationId = selectedAnnotationId; sel.text = text; return sel; }
public Relation(int aId, String aType, List<Argument> aArguments, String aLabelText, String aColor) { this(new VID(aId), aType, aArguments, aLabelText, aColor); }
public Entity(int aId, String aType, List<Offsets> aOffsets, String aLabelText, String aColor, String aHoverSpantext) { this(new VID(aId), aType, aOffsets, aLabelText, aColor, aHoverSpantext); }
public Relation(int aId, String aType, List<Argument> aArguments, String aLabelText, String aColor) { this(new VID(aId), aType, aArguments, aLabelText, aColor); }
public AnnotationComment(int aId, String aCommentType, String aComment) { this(new VID(aId), aCommentType, aComment); }
public Entity(int aId, String aType, List<Offsets> aOffsets, String aLabelText, String aColor, String aHoverSpantext) { this(new VID(aId), aType, aOffsets, aLabelText, aColor, aHoverSpantext); }
public AnnotationComment(int aId, String aCommentType, String aComment) { this(new VID(aId), aCommentType, aComment); }