automate(jCas, layerFeature, annotations); LOG.info("Predictions found are written to the CAS"); aCorrectionDocumentService.writeCorrectionCas(jCas, document); status.setAnnoDocs(status.getAnnoDocs() - 1); aCorrectionDocumentService.writeCorrectionCas(jCas, document); status.setAnnoDocs(status.getAnnoDocs() - 1);
automate(jCas, layerFeature, annotations); LOG.info("Predictions found are written to the CAS"); aCorrectionDocumentService.writeCorrectionCas(jCas, document); status.setAnnoDocs(status.getAnnoDocs() - 1); aCorrectionDocumentService.writeCorrectionCas(jCas, document); status.setAnnoDocs(status.getAnnoDocs() - 1);
aCorrectionDocumentService.writeCorrectionCas(jCas,d);
aCorrectionDocumentService.writeCorrectionCas(jCas,d);
private JCas createCorrectionCas(JCas mergeJCas, AnnotatorState aState, AnnotationDocument aRandomAnnotationDocument) throws UIMAException, ClassNotFoundException, IOException { User user = userRepository.getCurrentUser(); mergeJCas = documentService.readAnnotationCas(aState.getDocument(), user); correctionDocumentService.writeCorrectionCas(mergeJCas, aRandomAnnotationDocument.getDocument()); updateDocumentTimestampAfterWrite(aState, correctionDocumentService .getCorrectionCasTimestamp(aState.getDocument())); return mergeJCas; } }
private JCas createCorrectionCas(JCas mergeJCas, AnnotatorState aState, AnnotationDocument aRandomAnnotationDocument) throws UIMAException, ClassNotFoundException, IOException { User user = userRepository.getCurrentUser(); mergeJCas = documentService.readAnnotationCas(aState.getDocument(), user); correctionDocumentService.writeCorrectionCas(mergeJCas, aRandomAnnotationDocument.getDocument()); updateDocumentTimestampAfterWrite(aState, correctionDocumentService .getCorrectionCasTimestamp(aState.getDocument())); return mergeJCas; } }
aCorrectionDocumentService.writeCorrectionCas(jCas, d);
aCorrectionDocumentService.writeCorrectionCas(jCas, d);
jCas = aDocumentService.readAnnotationCas(logedInUserAnnotationDocument); annotationService.upgradeCas(jCas.getCas(), logedInUserAnnotationDocument); aCorrectionDocumentService.writeCorrectionCas(jCas, aDocument); aCorrectionDocumentService.writeCorrectionCas(jCas, aDocument);
jCas = aDocumentService.readAnnotationCas(logedInUserAnnotationDocument); annotationService.upgradeCas(jCas.getCas(), logedInUserAnnotationDocument); aCorrectionDocumentService.writeCorrectionCas(jCas, aDocument); aCorrectionDocumentService.writeCorrectionCas(jCas, aDocument);
aCorrectionDocumentService.writeCorrectionCas(jCas, d);
aCorrectionDocumentService.writeCorrectionCas(jCas, d);
correctionDocumentService.writeCorrectionCas(correctionCas, state.getDocument());
aBModel.getUser().getUsername(), jCas, aFeature, beginOffset, endOffset, depCoveredText, govCoveredText, aValue); aCorrectionDocumentService.writeCorrectionCas(jCas, d);
aBModel.getUser().getUsername(), jCas, aFeature, beginOffset, endOffset, depCoveredText, govCoveredText, aValue); aCorrectionDocumentService.writeCorrectionCas(jCas, d);
correctionDocumentService.writeCorrectionCas(correctionCas, state.getDocument());
correctionDocumentService.writeCorrectionCas(correctionCas, state.getDocument());
if (aUpgrade) { correctionDocumentService.upgradeCorrectionCas(mergeJCas.getCas(), aDocument); correctionDocumentService.writeCorrectionCas(mergeJCas, aDocument); updateDocumentTimestampAfterWrite(aState, correctionDocumentService .getCorrectionCasTimestamp(aState.getDocument()));
if (aUpgrade) { correctionDocumentService.upgradeCorrectionCas(mergeJCas.getCas(), aDocument); correctionDocumentService.writeCorrectionCas(mergeJCas, aDocument); updateDocumentTimestampAfterWrite(aState, correctionDocumentService .getCorrectionCasTimestamp(aState.getDocument()));