Tabnine Logo
VArc.getSource
Code IndexAdd Tabnine to your IDE (free)

How to use
getSource
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.getSource (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.modelVArcgetSource

Popular methods of VArc

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

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • setContentView (Activity)
  • addToBackStack (FragmentTransaction)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now