congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
de.tudarmstadt.ukp.clarin.webanno.api.annotation.adapter
Code IndexAdd Tabnine to your IDE (free)

How to use de.tudarmstadt.ukp.clarin.webanno.api.annotation.adapter

Best Java code snippets using de.tudarmstadt.ukp.clarin.webanno.api.annotation.adapter (Showing top 20 results out of 315)

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

private AnnotationFS createChainElementAnnotation(CreateSpanAnnotationRequest aRequest)
{
  // Add the link annotation on the span
  AnnotationFS newLink = newLink(aRequest.getJcas(), aRequest.getBegin(), aRequest.getEnd());
  // The added link is a new chain on its own - add the chain head FS
  newChain(aRequest.getJcas(), newLink);
  return newLink;
}

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

public AnnotationFS handle(CreateSpanAnnotationRequest aRequest)
  throws AnnotationException
{
  CreateSpanAnnotationRequest request = aRequest;
  
  for (SpanLayerBehavior behavior : behaviors) {
    request = behavior.onCreate(this, request);
  }
  
  return createChainElementAnnotation(request);
}

origin: webanno/webanno

public AnnotationFS addSpan(SourceDocument aDocument, String aUsername, JCas aJCas, int aBegin,
    int aEnd)
  throws AnnotationException
{
  return handle(new CreateSpanAnnotationRequest(aDocument, aUsername, aJCas, aBegin, aEnd));
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-annotation

public AnnotationFS handle(CreateSpanAnnotationRequest aRequest) throws AnnotationException
{
  CreateSpanAnnotationRequest request = aRequest;
  for (SpanLayerBehavior behavior : behaviors) {
    request = behavior.onCreate(this, request);
  }
  AnnotationFS newAnnotation = createSpanAnnotation(request.getJcas().getCas(),
      request.getBegin(), request.getEnd());
  publishEvent(new SpanCreatedEvent(this, request.getDocument(), request.getUsername(),
      newAnnotation));
  return newAnnotation;
}

origin: webanno/webanno

public AnnotationFS handle(CreateRelationAnnotationRequest aRequest)
  throws AnnotationException
{
  CreateRelationAnnotationRequest request = aRequest;
  
  for (RelationLayerBehavior behavior : behaviors) {
    request = behavior.onCreate(this, request);
  }
  
  return createRelationAnnotation(request.getJcas().getCas(), request.getOriginFs(),
      request.getTargetFs());
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-annotation

public static String getUiTypeName(TypeAdapter aAdapter)
{
  return aAdapter.getTypeId() + "_" + aAdapter.getAnnotationTypeName();
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-annotation

@Override
public boolean accepts(LayerSupport<?> aLayerType)
{
  return super.accepts(aLayerType) || aLayerType instanceof ChainLayerSupport;
}

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

  public CreateSpanAnnotationRequest changeSpan(int aBegin, int aEnd)
  {
    return new CreateSpanAnnotationRequest(this, document, username, jcas, aBegin, aEnd);
  }
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-annotation

  public CreateRelationAnnotationRequest changeRelation(AnnotationFS aOrigin,
      AnnotationFS aTarget)
  {
    return new CreateRelationAnnotationRequest(this, document, username, jcas, aOrigin, aTarget,
        windowBegin, windowEnd);
  }
}
origin: webanno/webanno

private AnnotationFS createChainElementAnnotation(CreateSpanAnnotationRequest aRequest)
{
  // Add the link annotation on the span
  AnnotationFS newLink = newLink(aRequest.getJcas(), aRequest.getBegin(), aRequest.getEnd());
  // The added link is a new chain on its own - add the chain head FS
  newChain(aRequest.getJcas(), newLink);
  return newLink;
}

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

public AnnotationFS handle(CreateRelationAnnotationRequest aRequest)
  throws AnnotationException
{
  CreateRelationAnnotationRequest request = aRequest;
  
  for (RelationLayerBehavior behavior : behaviors) {
    request = behavior.onCreate(this, request);
  }
  
  return createRelationAnnotation(request.getJcas().getCas(), request.getOriginFs(),
      request.getTargetFs());
}
origin: webanno/webanno

public AnnotationFS handle(CreateSpanAnnotationRequest aRequest)
  throws AnnotationException
{
  CreateSpanAnnotationRequest request = aRequest;
  
  for (SpanLayerBehavior behavior : behaviors) {
    request = behavior.onCreate(this, request);
  }
  
  return createChainElementAnnotation(request);
}

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

public AnnotationFS addSpan(SourceDocument aDocument, String aUsername, JCas aJCas, int aBegin,
    int aEnd)
  throws AnnotationException
{
  return handle(new CreateSpanAnnotationRequest(aDocument, aUsername, aJCas, aBegin, aEnd));
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-annotation

@Override
public boolean accepts(LayerSupport<?> aLayerType)
{
  return super.accepts(aLayerType) || aLayerType instanceof ChainLayerSupport;
}

origin: webanno/webanno

  public CreateSpanAnnotationRequest changeSpan(int aBegin, int aEnd)
  {
    return new CreateSpanAnnotationRequest(this, document, username, jcas, aBegin, aEnd);
  }
}
origin: webanno/webanno

  public CreateRelationAnnotationRequest changeRelation(AnnotationFS aOrigin,
      AnnotationFS aTarget)
  {
    return new CreateRelationAnnotationRequest(this, document, username, jcas, aOrigin, aTarget,
        windowBegin, windowEnd);
  }
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-annotation

@Override
public boolean accepts(LayerSupport<?> aLayerType)
{
  return super.accepts(aLayerType) || aLayerType instanceof ChainLayerSupport;
}

origin: webanno/webanno

@Override
public boolean accepts(LayerSupport<?> aLayerType)
{
  return super.accepts(aLayerType) || aLayerType instanceof ChainLayerSupport;
}

origin: webanno/webanno

@Override
public boolean accepts(LayerSupport<?> aLayerType)
{
  return super.accepts(aLayerType) || aLayerType instanceof ChainLayerSupport;
}

origin: webanno/webanno

@Override
public boolean accepts(LayerSupport<?> aLayerType)
{
  return super.accepts(aLayerType) || aLayerType instanceof ChainLayerSupport;
}

de.tudarmstadt.ukp.clarin.webanno.api.annotation.adapter

Most used classes

  • RelationAdapter
    Manage interactions with annotations on a relation layer.
  • SpanAdapter
    Manage interactions with annotations on a span layer.
  • TypeAdapter
    A type adapter encapsulates a specific kind of annotation layer, e.g. spans, relations or chains. A
  • ChainAdapter
    Manage interactions with annotations on a chain layer.
  • SpanAnchoringModeBehavior
  • CreateRelationAnnotationRequest,
  • CreateSpanAnnotationRequest,
  • LayerBehavior,
  • RelationAttachmentBehavior,
  • RelationCrossSentenceBehavior,
  • RelationLayerBehavior,
  • SpanCrossSentenceBehavior,
  • SpanLayerBehavior,
  • SpanStackingBehavior,
  • TypeAdapter_ImplBase
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