public CreateRelationAnnotationRequest changeRelation(AnnotationFS aOrigin, AnnotationFS aTarget) { return new CreateRelationAnnotationRequest(this, document, username, jcas, aOrigin, aTarget, windowBegin, windowEnd); } }
public CreateRelationAnnotationRequest changeRelation(AnnotationFS aOrigin, AnnotationFS aTarget) { return new CreateRelationAnnotationRequest(this, document, username, jcas, aOrigin, aTarget, windowBegin, windowEnd); } }
/** * Update the CAS with new/modification of arc annotations from brat * * @param aDocument * the document to which the CAS belongs * @param aUsername * the user to which the CAS belongs * @param aOriginFs * the origin FS. * @param aTargetFs * the target FS. * @param aJCas * the JCas. * @param aWindowBegin * begin offset of the first visible sentence * @param aWindowEnd * end offset of the last visible sentence * @return the ID. * @throws AnnotationException * if the annotation could not be created/updated. */ public AnnotationFS add(SourceDocument aDocument, String aUsername, AnnotationFS aOriginFs, AnnotationFS aTargetFs, JCas aJCas, int aWindowBegin, int aWindowEnd) throws AnnotationException { return handle(new CreateRelationAnnotationRequest(aDocument, aUsername, aJCas, aOriginFs, aTargetFs, aWindowBegin, aWindowEnd)); }
/** * Update the CAS with new/modification of arc annotations from brat * * @param aDocument * the document to which the CAS belongs * @param aUsername * the user to which the CAS belongs * @param aOriginFs * the origin FS. * @param aTargetFs * the target FS. * @param aJCas * the JCas. * @param aWindowBegin * begin offset of the first visible sentence * @param aWindowEnd * end offset of the last visible sentence * @return the ID. * @throws AnnotationException * if the annotation could not be created/updated. */ public AnnotationFS add(SourceDocument aDocument, String aUsername, AnnotationFS aOriginFs, AnnotationFS aTargetFs, JCas aJCas, int aWindowBegin, int aWindowEnd) throws AnnotationException { return handle(new CreateRelationAnnotationRequest(aDocument, aUsername, aJCas, aOriginFs, aTargetFs, aWindowBegin, aWindowEnd)); }