congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ChainAdapter.getChainFirstFeatureName
Code IndexAdd Tabnine to your IDE (free)

How to use
getChainFirstFeatureName
method
in
de.tudarmstadt.ukp.clarin.webanno.api.annotation.adapter.ChainAdapter

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

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

private List<AnnotationFS> collectLinks(FeatureStructure aChain)
{
  List<AnnotationFS> links = new ArrayList<>();
  // Now we seek the link within the current chain
  AnnotationFS linkFs = (AnnotationFS) aChain.getFeatureValue(aChain.getType()
      .getFeatureByBaseName(getChainFirstFeatureName()));
  while (linkFs != null) {
    links.add(linkFs);
    linkFs = getNextLink(linkFs);
  }
  return links;
}
origin: webanno/webanno

private List<AnnotationFS> collectLinks(FeatureStructure aChain)
{
  List<AnnotationFS> links = new ArrayList<>();
  // Now we seek the link within the current chain
  AnnotationFS linkFs = (AnnotationFS) aChain.getFeatureValue(aChain.getType()
      .getFeatureByBaseName(getChainFirstFeatureName()));
  while (linkFs != null) {
    links.add(linkFs);
    linkFs = getNextLink(linkFs);
  }
  return links;
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-annotation

/**
 * Set the first link of a chain in the chain head feature structure.
 */
private void setFirstLink(FeatureStructure aChain, AnnotationFS aLink)
{
  aChain.setFeatureValue(aChain.getType().getFeatureByBaseName(getChainFirstFeatureName()),
      aLink);
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-annotation

/**
 * Get the first link of a chain from the chain head feature structure.
 */
private AnnotationFS getFirstLink(FeatureStructure aChain)
{
  return (AnnotationFS) aChain.getFeatureValue(aChain.getType().getFeatureByBaseName(
      getChainFirstFeatureName()));
}
origin: webanno/webanno

/**
 * Set the first link of a chain in the chain head feature structure.
 */
private void setFirstLink(FeatureStructure aChain, AnnotationFS aLink)
{
  aChain.setFeatureValue(aChain.getType().getFeatureByBaseName(getChainFirstFeatureName()),
      aLink);
}
origin: webanno/webanno

/**
 * Get the first link of a chain from the chain head feature structure.
 */
private AnnotationFS getFirstLink(FeatureStructure aChain)
{
  return (AnnotationFS) aChain.getFeatureValue(aChain.getType().getFeatureByBaseName(
      getChainFirstFeatureName()));
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-annotation

/**
 * Create a new chain head feature structure. Already adds the chain to the CAS.
 */
private FeatureStructure newChain(JCas aJCas, AnnotationFS aFirstLink)
{
  Type chainType = CasUtil.getType(aJCas.getCas(), getChainTypeName());
  FeatureStructure newChain = aJCas.getCas().createFS(chainType);
  newChain.setFeatureValue(chainType.getFeatureByBaseName(getChainFirstFeatureName()),
      aFirstLink);
  aJCas.addFsToIndexes(newChain);
  return newChain;
}
origin: webanno/webanno

/**
 * Create a new chain head feature structure. Already adds the chain to the CAS.
 */
private FeatureStructure newChain(JCas aJCas, AnnotationFS aFirstLink)
{
  Type chainType = CasUtil.getType(aJCas.getCas(), getChainTypeName());
  FeatureStructure newChain = aJCas.getCas().createFS(chainType);
  newChain.setFeatureValue(chainType.getFeatureByBaseName(getChainFirstFeatureName()),
      aFirstLink);
  aJCas.addFsToIndexes(newChain);
  return newChain;
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-annotation

Feature chainFirst = chainType.getFeatureByBaseName(typeAdapter.getChainFirstFeatureName());
origin: webanno/webanno

Feature chainFirst = chainType.getFeatureByBaseName(typeAdapter.getChainFirstFeatureName());
de.tudarmstadt.ukp.clarin.webanno.api.annotation.adapterChainAdaptergetChainFirstFeatureName

Popular methods of ChainAdapter

  • <init>
  • addSpan
  • addArc
  • collectLinks
  • createChainElementAnnotation
  • deleteArc
  • deleteSpan
  • getAnnotationTypeName
  • getChainForLink
    Find the chain head for the given link.
  • getChainTypeName
  • getFirstLink
    Get the first link of a chain from the chain head feature structure.
  • getLayer
  • getFirstLink,
  • getLayer,
  • getLinkNextFeatureName,
  • getNextLink,
  • getPrevLink,
  • handle,
  • isLinkedListBehavior,
  • newChain,
  • newLink

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • startActivity (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Reference (javax.naming)
  • Best plugins for Eclipse
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