public boolean equals(UserAnnotationSegment segment) { return segment.getCollectionData().equals(collectionData) && segment.getDocumentResponse().equals(documentResponse); } }
UserAnnotationSegment userAnnotationSegments = new UserAnnotationSegment(); .setSelectionByUsernameAndAddress(annotationSelectionByUsernameAndAddress); userAnnotationSegments.setAnnotatorState(state); segments.add(userAnnotationSegments);
new UserAnnotationSegment(); seg.setUsername(username); seg.setAnnotatorState(state); seg.setCollectionData( getCollectionInformation(annotationService, aCurationContainer)); seg.setDocumentResponse( render(jCas, state, curationColoringStrategy)); seg.setSelectionByUsernameAndAddress(aAnnotationSelectionByUsernameAndAddress); segments.add(seg);
UserAnnotationSegment seg = vis.getModelObject(); JCas jCas = jCases.get(seg.getUsername()); annoStates.get(seg.getUsername())); seg.setCollectionData( getCollectionInformation(annotationService, aCurationContainer)); seg.setDocumentResponse( render(jCas, state, curationColoringStrategy)); seg.setAnnotatorState(state); seg.setSelectionByUsernameAndAddress( aAnnotationSelectionByUsernameAndAddress);
if (getModelObject().getAnnotatorState().getMode().equals(Mode.AUTOMATION) || getModelObject().getAnnotatorState().getMode().equals(Mode.CORRECTION)) { username = "Suggestion"; username = getModelObject().getUsername();
@Override protected String getDocumentData() { return getModelObject().getDocumentResponse() == null ? "{}" : getModelObject().getDocumentResponse(); }
@Override protected String getCollectionData() { return getModelObject().getCollectionData(); }
UserAnnotationSegment userAnnotationSegments = new UserAnnotationSegment(); .setSelectionByUsernameAndAddress(annotationSelectionByUsernameAndAddress); userAnnotationSegments.setAnnotatorState(state); segments.add(userAnnotationSegments);
new UserAnnotationSegment(); seg.setUsername(username); seg.setAnnotatorState(state); seg.setCollectionData( getCollectionInformation(annotationService, aCurationContainer)); seg.setDocumentResponse( render(jCas, state, curationColoringStrategy)); seg.setSelectionByUsernameAndAddress(aAnnotationSelectionByUsernameAndAddress); segments.add(seg);
UserAnnotationSegment seg = vis.getModelObject(); JCas jCas = jCases.get(seg.getUsername()); annoStates.get(seg.getUsername())); seg.setCollectionData( getCollectionInformation(annotationService, aCurationContainer)); seg.setDocumentResponse( render(jCas, state, curationColoringStrategy)); seg.setAnnotatorState(state); seg.setSelectionByUsernameAndAddress( aAnnotationSelectionByUsernameAndAddress);
if (getModelObject().getAnnotatorState().getMode().equals(Mode.AUTOMATION) || getModelObject().getAnnotatorState().getMode().equals(Mode.CORRECTION)) { username = "Suggestion"; username = getModelObject().getUsername();
@Override protected String getDocumentData() { return getModelObject().getDocumentResponse() == null ? "{}" : getModelObject().getDocumentResponse(); }
@Override protected String getCollectionData() { return getModelObject().getCollectionData(); }
UserAnnotationSegment userAnnotationSegment = new UserAnnotationSegment(); if (getModelObject().getDocument() != null) { userAnnotationSegment .setSelectionByUsernameAndAddress(annotationSelectionByUsernameAndAddress); userAnnotationSegment.setAnnotatorState(getModelObject()); segments.add(userAnnotationSegment);
private void mergeSpan(IRequestParameters aRequest, UserAnnotationSegment aCurationUserSegment, JCas aJcas) throws AnnotationException, UIMAException, ClassNotFoundException, IOException { AnnotationDocument clickedAnnotationDocument; AnnotatorState state = aCurationUserSegment.getAnnotatorState(); if (state.getMode().equals(Mode.AUTOMATION) || state.getMode().equals(Mode.CORRECTION)) { // createSpan / getJCas do not require an annotation document in this mode clickedAnnotationDocument = null; } else { SourceDocument sourceDocument = aCurationUserSegment.getAnnotatorState().getDocument(); clickedAnnotationDocument = documentService.getAnnotationDocument(sourceDocument, aCurationUserSegment.getUsername()); } int address = aRequest.getParameterValue(PARAM_ID).toInt(); String spanType = removePrefix(aRequest.getParameterValue(PARAM_TYPE).toString()); createSpan(spanType, state, aJcas, clickedAnnotationDocument, address); }
public boolean equals(UserAnnotationSegment segment) { return segment.getCollectionData().equals(collectionData) && segment.getDocumentResponse().equals(documentResponse); } }
UserAnnotationSegment userAnnotationSegment = new UserAnnotationSegment(); if (getModelObject().getDocument() != null) { userAnnotationSegment .setSelectionByUsernameAndAddress(annotationSelectionByUsernameAndAddress); userAnnotationSegment.setAnnotatorState(getModelObject()); segments.add(userAnnotationSegment);
private void mergeSpan(IRequestParameters aRequest, UserAnnotationSegment aCurationUserSegment, JCas aJcas) throws AnnotationException, UIMAException, ClassNotFoundException, IOException { AnnotationDocument clickedAnnotationDocument; AnnotatorState state = aCurationUserSegment.getAnnotatorState(); if (state.getMode().equals(Mode.AUTOMATION) || state.getMode().equals(Mode.CORRECTION)) { // createSpan / getJCas do not require an annotation document in this mode clickedAnnotationDocument = null; } else { SourceDocument sourceDocument = aCurationUserSegment.getAnnotatorState().getDocument(); clickedAnnotationDocument = documentService.getAnnotationDocument(sourceDocument, aCurationUserSegment.getUsername()); } int address = aRequest.getParameterValue(PARAM_ID).toInt(); String spanType = removePrefix(aRequest.getParameterValue(PARAM_TYPE).toString()); createSpan(spanType, state, aJcas, clickedAnnotationDocument, address); }
UserAnnotationSegment userAnnotationSegment = new UserAnnotationSegment(); if (getModelObject().getDocument() != null) { userAnnotationSegment .setSelectionByUsernameAndAddress(annotationSelectionByUsernameAndAddress); userAnnotationSegment.setAnnotatorState(getModelObject()); segments.add(userAnnotationSegment);
String fsArcaddress = aRequest.getParameterValue(PARAM_ARC_ID).toString(); AnnotatorState bModel = aCurationUserSegment.getAnnotatorState(); SourceDocument sourceDocument = bModel.getDocument(); if (!aCurationUserSegment.getAnnotatorState().getMode().equals(Mode.CURATION)) { clickedJCas = correctionDocumentService.readCorrectionCas(sourceDocument); User user = userRepository.get(aCurationUserSegment.getUsername()); AnnotationDocument clickedAnnotationDocument = documentService .getAnnotationDocument(sourceDocument, user);