Codota Logo
SuggestionViewPanel.getJCas
Code IndexAdd Codota to your IDE (free)

How to use
getJCas
method
in
de.tudarmstadt.ukp.clarin.webanno.ui.curation.component.SuggestionViewPanel

Best Java code snippets using de.tudarmstadt.ukp.clarin.webanno.ui.curation.component.SuggestionViewPanel.getJCas (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: webanno/webanno

private void createSpan(String spanType, AnnotatorState aBModel, JCas aMergeJCas,
    AnnotationDocument aAnnotationDocument, int aAddress)
    throws IOException, UIMAException, ClassNotFoundException, AnnotationException
{
  JCas clickedJCas = getJCas(aBModel, aAnnotationDocument);
  AnnotationFS fsClicked = selectByAddr(clickedJCas, aAddress);
  if (isCorefType(fsClicked)) {
    throw new AnnotationException("Coreference Annotation not supported in curation");
  }
  long layerId = TypeUtil.getLayerId(spanType);
  AnnotationLayer layer = annotationService.getLayer(layerId);
  MergeCas.addSpanAnnotation(aBModel, annotationService, layer, aMergeJCas, fsClicked,
      layer.isAllowStacking());
  writeEditorCas(aBModel, aMergeJCas);
  // update timestamp
  int sentenceNumber = getSentenceNumber(clickedJCas, fsClicked.getBegin());
  aBModel.setFocusUnitIndex(sentenceNumber);
  aBModel.getDocument().setSentenceAccessed(sentenceNumber);
  if (aBModel.getPreferences().isScrollPage()) {
    Sentence sentence = selectSentenceAt(aMergeJCas, aBModel.getFirstVisibleUnitBegin(),
        aBModel.getFirstVisibleUnitEnd());
    sentence = findWindowStartCenteringOnSelection(aMergeJCas, sentence,
        fsClicked.getBegin(), aBModel.getProject(), aBModel.getDocument(),
        aBModel.getPreferences().getWindowSize());
    aBModel.setFirstVisibleUnit(sentence);
  }
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-ui-curation

private void createSpan(String spanType, AnnotatorState aBModel, JCas aMergeJCas,
    AnnotationDocument aAnnotationDocument, int aAddress)
    throws IOException, UIMAException, ClassNotFoundException, AnnotationException
{
  JCas clickedJCas = getJCas(aBModel, aAnnotationDocument);
  AnnotationFS fsClicked = selectByAddr(clickedJCas, aAddress);
  if (isCorefType(fsClicked)) {
    throw new AnnotationException("Coreference Annotation not supported in curation");
  }
  long layerId = TypeUtil.getLayerId(spanType);
  AnnotationLayer layer = annotationService.getLayer(layerId);
  MergeCas.addSpanAnnotation(aBModel, annotationService, layer, aMergeJCas, fsClicked,
      layer.isAllowStacking());
  writeEditorCas(aBModel, aMergeJCas);
  // update timestamp
  int sentenceNumber = getSentenceNumber(clickedJCas, fsClicked.getBegin());
  aBModel.setFocusUnitIndex(sentenceNumber);
  aBModel.getDocument().setSentenceAccessed(sentenceNumber);
  if (aBModel.getPreferences().isScrollPage()) {
    Sentence sentence = selectSentenceAt(aMergeJCas, aBModel.getFirstVisibleUnitBegin(),
        aBModel.getFirstVisibleUnitEnd());
    sentence = findWindowStartCenteringOnSelection(aMergeJCas, sentence,
        fsClicked.getBegin(), aBModel.getProject(), aBModel.getDocument(),
        aBModel.getPreferences().getWindowSize());
    aBModel.setFirstVisibleUnit(sentence);
  }
}
origin: webanno/webanno

AnnotationDocument clickedAnnotationDocument = documentService
    .getAnnotationDocument(sourceDocument, user);
clickedJCas = getJCas(bModel, clickedAnnotationDocument);
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-ui-curation

AnnotationDocument clickedAnnotationDocument = documentService
    .getAnnotationDocument(sourceDocument, user);
clickedJCas = getJCas(bModel, clickedAnnotationDocument);
de.tudarmstadt.ukp.clarin.webanno.ui.curation.componentSuggestionViewPanelgetJCas

Popular methods of SuggestionViewPanel

  • init
    Initializes the user annotation segments later to be filled with content.
  • updatePanel
  • setOutputMarkupId
  • add
  • addSuggestionColor
    For each ConfigurationSet, where there are some differences in users annotation and the curation ann
  • calcColors
  • createSpan
  • error
  • getAnnotatorCas
  • getCollectionInformation
  • isCorefType
  • makeColoringStrategy
  • isCorefType,
  • makeColoringStrategy,
  • removePrefix,
  • render,
  • setOutputMarkupPlaceholderTag,
  • writeEditorCas

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • getApplicationContext (Context)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JCheckBox (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now