Codota Logo
VArc.getTarget
Code IndexAdd Codota to your IDE (free)

How to use
getTarget
method
in
de.tudarmstadt.ukp.clarin.webanno.api.annotation.rendering.model.VArc

Best Java code snippets using de.tudarmstadt.ukp.clarin.webanno.api.annotation.rendering.model.VArc.getTarget (Showing top 6 results out of 315)

origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-annotation

@Override
public void onRender(TypeAdapter aAdapter, VDocument aResponse,
    Map<AnnotationFS, VArc> aAnnoToArcIdx)
{
  if (aAdapter.getLayer().isCrossSentence()) {
    return;
  }
  
  try {
    for (Entry<AnnotationFS, VArc> e : aAnnoToArcIdx.entrySet()) {
      JCas jcas = e.getKey().getCAS().getJCas();
      
      if (!isBeginInSameSentence(jcas, 
          selectByAddr(jcas, e.getValue().getSource().getId()).getBegin(),
          selectByAddr(jcas, e.getValue().getTarget().getId()).getBegin()))
      {
        aResponse.add(new VComment(new VID(e.getKey()), ERROR,
            "Crossing sentence bounardies is not permitted."));
      }
    }
  }
  catch (CASException e) {
    throw new IllegalStateException("Unable to obtain JCas");
  }
}

origin: webanno/webanno

@Override
public void onRender(TypeAdapter aAdapter, VDocument aResponse,
    Map<AnnotationFS, VArc> aAnnoToArcIdx)
{
  if (aAdapter.getLayer().isCrossSentence()) {
    return;
  }
  
  try {
    for (Entry<AnnotationFS, VArc> e : aAnnoToArcIdx.entrySet()) {
      JCas jcas = e.getKey().getCAS().getJCas();
      
      if (!isBeginInSameSentence(jcas, 
          selectByAddr(jcas, e.getValue().getSource().getId()).getBegin(),
          selectByAddr(jcas, e.getValue().getTarget().getId()).getBegin()))
      {
        aResponse.add(new VComment(new VID(e.getKey()), ERROR,
            "Crossing sentence bounardies is not permitted."));
      }
    }
  }
  catch (CASException e) {
    throw new IllegalStateException("Unable to obtain JCas");
  }
}

origin: inception-project/inception

new Relation(varc.getSource().toString(), varc.getTarget().toString(), color));
origin: de.tudarmstadt.ukp.inception.app/inception-pdf-editor

new Relation(varc.getSource().getId(), varc.getTarget().getId(), color));
origin: webanno/webanno

getArgument(varc.getSource(), varc.getTarget()), bratLabelText, color));
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-brat

getArgument(varc.getSource(), varc.getTarget()), bratLabelText, color));
de.tudarmstadt.ukp.clarin.webanno.api.annotation.rendering.modelVArcgetTarget

Popular methods of VArc

  • getSource
  • getColorHint
  • getFeatures
  • getLabelHint
  • getVid
  • <init>
  • getLayer
  • getType

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Collectors (java.util.stream)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
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