public CurationContainer buildCurationContainer(AnnotatorState aBModel) throws UIMAException, ClassNotFoundException, IOException, AnnotationException CurationContainer curationContainer = new CurationContainer(); segmentAdress.get(username).get(begin)); curationContainer.getCurationViewByBegin().put(begin, curationSegment);
private void actionToggleScriptDirection(AjaxRequestTarget aTarget) throws Exception { getModelObject().toggleScriptDirection(); annotationEditor.requestRender(aTarget); curationContainer.setBratAnnotatorModel(getModelObject()); suggestionView.updatePanel(aTarget, curationContainer, annotationSelectionByUsernameAndAddress, curationSegment); }
private String getCollectionInformation(AnnotationSchemaService aAnnotationService, CurationContainer aCurationContainer) throws IOException { GetCollectionInformationResponse info = new GetCollectionInformationResponse(); info.setEntityTypes(BratRenderer.buildEntityTypes(aCurationContainer .getAnnotatorState().getAnnotationLayers(), aAnnotationService)); return JSONUtil.toInterpretableJsonString(info); }
add(annotationEditor); curationContainer = new CurationContainer(); curationContainer.setBratAnnotatorModel(getModelObject());
UserAnnotationSegment userAnnotationSegments = new UserAnnotationSegment(); state = getModelObject().getAnnotatorState(); if (state != null) { userAnnotationSegments sourceListModel = sourceListModel == null ? getModelObject().getCurationViews() : sourceListModel; add(sentencesListView); sentencesListView.add(new ListView<SourceListView>("sentencesList", LoadableDetachableModel.of(() -> getModelObject().getCurationViews()))
add(annotationEditor); curationContainer = new CurationContainer(); curationContainer.setBratAnnotatorModel(getModelObject());
UserAnnotationSegment userAnnotationSegments = new UserAnnotationSegment(); state = getModelObject().getAnnotatorState(); if (state != null) { userAnnotationSegments sourceListModel = sourceListModel == null ? getModelObject().getCurationViews() : sourceListModel; add(sentencesListView); sentencesListView.add(new ListView<SourceListView>("sentencesList", LoadableDetachableModel.of(() -> getModelObject().getCurationViews()))
private void actionToggleScriptDirection(AjaxRequestTarget aTarget) throws Exception { getModelObject().toggleScriptDirection(); annotationEditor.requestRender(aTarget); curationContainer.setBratAnnotatorModel(getModelObject()); suggestionView.updatePanel(aTarget, curationContainer, annotationSelectionByUsernameAndAddress, curationSegment); }
add(annotationEditor); curationContainer = new CurationContainer(); curationContainer.setBratAnnotatorModel(getModelObject());
public CurationContainer buildCurationContainer(AnnotatorState aBModel) throws UIMAException, ClassNotFoundException, IOException, AnnotationException CurationContainer curationContainer = new CurationContainer(); segmentAdress.get(username).get(begin)); curationContainer.getCurationViewByBegin().put(begin, curationSegment);
private String getCollectionInformation(AnnotationSchemaService aAnnotationService, CurationContainer aCurationContainer) throws IOException { GetCollectionInformationResponse info = new GetCollectionInformationResponse(); info.setEntityTypes(BratRenderer.buildEntityTypes(aCurationContainer .getAnnotatorState().getAnnotationLayers(), aAnnotationService)); return JSONUtil.toInterpretableJsonString(info); }
private void actionToggleScriptDirection(AjaxRequestTarget aTarget) throws Exception { getModelObject().toggleScriptDirection(); annotationEditor.requestRender(aTarget); curationContainer.setBratAnnotatorModel(getModelObject()); suggestionView.updatePanel(aTarget, curationContainer, annotationSelectionByUsernameAndAddress, curationSegment); }
curationContainer = new CurationContainer(); curationContainer.setBratAnnotatorModel(getModelObject());
throws UIMAException, ClassNotFoundException, IOException AnnotatorState state = aCurationContainer.getAnnotatorState(); SourceDocument sourceDocument = state.getDocument();
private void actionGotoPage(AjaxRequestTarget aTarget, Form<?> aForm) throws Exception { AnnotatorState state = getModelObject(); JCas editorCas = getEditorCas(); List<Sentence> sentences = new ArrayList<>(select(editorCas, Sentence.class)); int selectedSentence = gotoPageTextField.getModelObject(); selectedSentence = Math.min(selectedSentence, sentences.size()); gotoPageTextField.setModelObject(selectedSentence); state.setFirstVisibleUnit(sentences.get(selectedSentence - 1)); state.setFocusUnitIndex(selectedSentence); SuggestionBuilder builder = new SuggestionBuilder(casStorageService, documentService, correctionDocumentService, curationDocumentService, annotationService, userRepository); curationContainer = builder.buildCurationContainer(state); setCurationSegmentBeginEnd(editorCas); curationContainer.setBratAnnotatorModel(state); update(aTarget); aTarget.add(gotoPageTextField); annotationEditor.requestRender(aTarget); }
curationContainer = new CurationContainer(); curationContainer.setBratAnnotatorModel(getModelObject());
throws UIMAException, ClassNotFoundException, IOException AnnotatorState state = aCurationContainer.getAnnotatorState(); SourceDocument sourceDocument = state.getDocument();
private void actionGotoPage(AjaxRequestTarget aTarget, Form<?> aForm) throws Exception { AnnotatorState state = getModelObject(); JCas editorCas = getEditorCas(); List<Sentence> sentences = new ArrayList<>(select(editorCas, Sentence.class)); int selectedSentence = gotoPageTextField.getModelObject(); selectedSentence = Math.min(selectedSentence, sentences.size()); gotoPageTextField.setModelObject(selectedSentence); state.setFirstVisibleUnit(sentences.get(selectedSentence - 1)); state.setFocusUnitIndex(selectedSentence); SuggestionBuilder builder = new SuggestionBuilder(casStorageService, documentService, correctionDocumentService, curationDocumentService, annotationService, userRepository); curationContainer = builder.buildCurationContainer(state); setCurationSegmentBeginEnd(editorCas); curationContainer.setBratAnnotatorModel(state); update(aTarget); aTarget.add(gotoPageTextField); annotationEditor.requestRender(aTarget); }
throws UIMAException, ClassNotFoundException, IOException, AnnotationException AnnotatorState state = aCurationContainer.getAnnotatorState(); SourceDocument sourceDocument = state.getDocument(); Map<String, JCas> jCases = new HashMap<>();
private void actionGotoPage(AjaxRequestTarget aTarget, Form<?> aForm) throws Exception { AnnotatorState state = getModelObject(); JCas editorCas = getEditorCas(); List<Sentence> sentences = new ArrayList<>(select(editorCas, Sentence.class)); int selectedSentence = gotoPageTextField.getModelObject(); selectedSentence = Math.min(selectedSentence, sentences.size()); gotoPageTextField.setModelObject(selectedSentence); state.setFirstVisibleUnit(sentences.get(selectedSentence - 1)); state.setFocusUnitIndex(selectedSentence); SuggestionBuilder builder = new SuggestionBuilder(casStorageService, documentService, correctionDocumentService, curationDocumentService, annotationService, userRepository); curationContainer = builder.buildCurationContainer(state); setCurationSegmentBeginEnd(editorCas); curationContainer.setBratAnnotatorModel(state); update(aTarget); aTarget.add(gotoPageTextField); annotationEditor.requestRender(aTarget); }