Tabnine Logo
ExportedTagSet.getTags
Code IndexAdd Tabnine to your IDE (free)

How to use
getTags
method
in
de.tudarmstadt.ukp.clarin.webanno.export.model.ExportedTagSet

Best Java code snippets using de.tudarmstadt.ukp.clarin.webanno.export.model.ExportedTagSet.getTags (Showing top 10 results out of 315)

origin: webanno/webanno

switch (tagSet.getTypeName()) {
case WebAnnoConst.POS:
  for (ExportedTag tag : tagSet.getTags()) {
    posTags.add(tag.getName());
    posTagDescriptions.add(tag.getDescription());
  for (ExportedTag tag : tagSet.getTags()) {
    depTags.add(tag.getName());
    depTagDescriptions.add(tag.getDescription());
  for (ExportedTag tag : tagSet.getTags()) {
    neTags.add(tag.getName());
    neTagDescriptions.add(tag.getDescription());
  for (ExportedTag tag : tagSet.getTags()) {
    corefTypeTags.add(tag.getName());
  for (ExportedTag tag : tagSet.getTags()) {
    corefRelTags.add(tag.getName());
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-dao

switch (tagSet.getTypeName()) {
case WebAnnoConst.POS:
  for (ExportedTag tag : tagSet.getTags()) {
    posTags.add(tag.getName());
    posTagDescriptions.add(tag.getDescription());
  for (ExportedTag tag : tagSet.getTags()) {
    depTags.add(tag.getName());
    depTagDescriptions.add(tag.getDescription());
  for (ExportedTag tag : tagSet.getTags()) {
    neTags.add(tag.getName());
    neTagDescriptions.add(tag.getDescription());
  for (ExportedTag tag : tagSet.getTags()) {
    corefTypeTags.add(tag.getName());
  for (ExportedTag tag : tagSet.getTags()) {
    corefRelTags.add(tag.getName());
origin: webanno/webanno

@Deprecated
public static void createTagSet(TagSet aTagSet,
    ExportedTagSet aExTagSet, Project aProject,
    User aUser, AnnotationSchemaService aAnnotationService)
  throws IOException
{
  aTagSet.setCreateTag(aExTagSet.isCreateTag());
  aTagSet.setDescription(aExTagSet.getDescription());
  aTagSet.setLanguage(aExTagSet.getLanguage());
  aTagSet.setName(aExTagSet.getName());
  aTagSet.setProject(aProject);
  aAnnotationService.createTagSet(aTagSet);
  for (ExportedTag exTag : aExTagSet.getTags()) {
    // do not duplicate tag
    if (aAnnotationService.existsTag(exTag.getName(), aTagSet)) {
      continue;
    }
    Tag tag = new Tag();
    tag.setDescription(exTag.getDescription());
    tag.setTagSet(aTagSet);
    tag.setName(exTag.getName());
    aAnnotationService.createTag(tag);
  }
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-export

@Deprecated
public static void createTagSet(TagSet aTagSet,
    ExportedTagSet aExTagSet, Project aProject,
    User aUser, AnnotationSchemaService aAnnotationService)
  throws IOException
{
  aTagSet.setCreateTag(aExTagSet.isCreateTag());
  aTagSet.setDescription(aExTagSet.getDescription());
  aTagSet.setLanguage(aExTagSet.getLanguage());
  aTagSet.setName(aExTagSet.getName());
  aTagSet.setProject(aProject);
  aAnnotationService.createTagSet(aTagSet);
  for (ExportedTag exTag : aExTagSet.getTags()) {
    // do not duplicate tag
    if (aAnnotationService.existsTag(exTag.getName(), aTagSet)) {
      continue;
    }
    Tag tag = new Tag();
    tag.setDescription(exTag.getDescription());
    tag.setTagSet(aTagSet);
    tag.setName(exTag.getName());
    aAnnotationService.createTag(tag);
  }
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-dao

private static TagSet replaceTagSet(Project project,
    ExportedTagSet importedTagSet,
    AnnotationSchemaService aAnnotationService)
  throws IOException
{
  String importedTagSetName = importedTagSet.getName();
  de.tudarmstadt.ukp.clarin.webanno.model.TagSet tagsetInUse = aAnnotationService
      .getTagSet(importedTagSetName, project);
  // Remove all tags associated with Tagset
  aAnnotationService.removeAllTags(tagsetInUse);
  // Copy and update TagSet Information from imported tagset
  tagsetInUse.setDescription(importedTagSet.getDescription());
  tagsetInUse.setName(importedTagSetName);
  tagsetInUse.setLanguage(importedTagSet.getLanguage());
  tagsetInUse.setProject(project);
  aAnnotationService.createTagSet(tagsetInUse);
  // Add all tags from imported tagset
  for (ExportedTag tag : importedTagSet.getTags()) {
    Tag newTag = new Tag();
    newTag.setDescription(tag.getDescription());
    newTag.setName(tag.getName());
    newTag.setTagSet(tagsetInUse);
    aAnnotationService.createTag(newTag);
  }
  
  return tagsetInUse;
}

origin: webanno/webanno

private static TagSet replaceTagSet(Project project,
    ExportedTagSet importedTagSet,
    AnnotationSchemaService aAnnotationService)
  throws IOException
{
  String importedTagSetName = importedTagSet.getName();
  de.tudarmstadt.ukp.clarin.webanno.model.TagSet tagsetInUse = aAnnotationService
      .getTagSet(importedTagSetName, project);
  // Remove all tags associated with Tagset
  aAnnotationService.removeAllTags(tagsetInUse);
  // Copy and update TagSet Information from imported tagset
  tagsetInUse.setDescription(importedTagSet.getDescription());
  tagsetInUse.setName(importedTagSetName);
  tagsetInUse.setLanguage(importedTagSet.getLanguage());
  tagsetInUse.setProject(project);
  aAnnotationService.createTagSet(tagsetInUse);
  // Add all tags from imported tagset
  for (ExportedTag tag : importedTagSet.getTags()) {
    Tag newTag = new Tag();
    newTag.setDescription(tag.getDescription());
    newTag.setName(tag.getName());
    newTag.setTagSet(tagsetInUse);
    aAnnotationService.createTag(newTag);
  }
  
  return tagsetInUse;
}

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

  private void importTagSet(TagSet aTagSet, ExportedTagSet aExTagSet, Project aProject)
    throws IOException
  {
    // aTagSet is a parameter because we want to use this also in the project settings
    // panel and have the ability there to merge imported tags into an existing tagset
    aTagSet.setCreateTag(aExTagSet.isCreateTag());
    aTagSet.setDescription(aExTagSet.getDescription());
    aTagSet.setLanguage(aExTagSet.getLanguage());
    aTagSet.setName(aExTagSet.getName());
    aTagSet.setProject(aProject);
    annotationService.createTagSet(aTagSet);

    for (ExportedTag exTag : aExTagSet.getTags()) {
      // do not duplicate tag
      if (annotationService.existsTag(exTag.getName(), aTagSet)) {
        continue;
      }
      Tag tag = new Tag();
      tag.setDescription(exTag.getDescription());
      tag.setTagSet(aTagSet);
      tag.setName(exTag.getName());
      annotationService.createTag(tag);
    }
  }
}
origin: webanno/webanno

  private void importTagSet(TagSet aTagSet, ExportedTagSet aExTagSet, Project aProject)
    throws IOException
  {
    // aTagSet is a parameter because we want to use this also in the project settings
    // panel and have the ability there to merge imported tags into an existing tagset
    aTagSet.setCreateTag(aExTagSet.isCreateTag());
    aTagSet.setDescription(aExTagSet.getDescription());
    aTagSet.setLanguage(aExTagSet.getLanguage());
    aTagSet.setName(aExTagSet.getName());
    aTagSet.setProject(aProject);
    annotationService.createTagSet(aTagSet);

    for (ExportedTag exTag : aExTagSet.getTags()) {
      // do not duplicate tag
      if (annotationService.existsTag(exTag.getName(), aTagSet)) {
        continue;
      }
      Tag tag = new Tag();
      tag.setDescription(exTag.getDescription());
      tag.setTagSet(aTagSet);
      tag.setName(exTag.getName());
      annotationService.createTag(tag);
    }
  }
}
origin: webanno/webanno

public static TagSet createTagSet(Project project,
    ExportedTagSet importedTagSet,
    AnnotationSchemaService aAnnotationService)
  throws IOException
{
  String importedTagSetName = importedTagSet.getName();
  if (aAnnotationService.existsTagSet(importedTagSetName, project)) {
    // aAnnotationService.removeTagSet(aAnnotationService.getTagSet(
    // importedTagSet.getName(), project));
    // Rename Imported TagSet instead of deleting the old one.
    importedTagSetName = copyTagSetName(aAnnotationService, importedTagSetName, project);
  }
  TagSet newTagSet = new TagSet();
  newTagSet.setDescription(importedTagSet.getDescription());
  newTagSet.setName(importedTagSetName);
  newTagSet.setLanguage(importedTagSet.getLanguage());
  newTagSet.setProject(project);
  newTagSet.setCreateTag(importedTagSet.isCreateTag());
  aAnnotationService.createTagSet(newTagSet);
  for (ExportedTag tag : importedTagSet.getTags()) {
    Tag newTag = new Tag();
    newTag.setDescription(tag.getDescription());
    newTag.setName(tag.getName());
    newTag.setTagSet(newTagSet);
    aAnnotationService.createTag(newTag);
  }
  
  return newTagSet;
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-dao

public static TagSet createTagSet(Project project,
    ExportedTagSet importedTagSet,
    AnnotationSchemaService aAnnotationService)
  throws IOException
{
  String importedTagSetName = importedTagSet.getName();
  if (aAnnotationService.existsTagSet(importedTagSetName, project)) {
    // aAnnotationService.removeTagSet(aAnnotationService.getTagSet(
    // importedTagSet.getName(), project));
    // Rename Imported TagSet instead of deleting the old one.
    importedTagSetName = copyTagSetName(aAnnotationService, importedTagSetName, project);
  }
  TagSet newTagSet = new TagSet();
  newTagSet.setDescription(importedTagSet.getDescription());
  newTagSet.setName(importedTagSetName);
  newTagSet.setLanguage(importedTagSet.getLanguage());
  newTagSet.setProject(project);
  newTagSet.setCreateTag(importedTagSet.isCreateTag());
  aAnnotationService.createTagSet(newTagSet);
  for (ExportedTag tag : importedTagSet.getTags()) {
    Tag newTag = new Tag();
    newTag.setDescription(tag.getDescription());
    newTag.setName(tag.getName());
    newTag.setTagSet(newTagSet);
    aAnnotationService.createTag(newTag);
  }
  
  return newTagSet;
}
de.tudarmstadt.ukp.clarin.webanno.export.modelExportedTagSetgetTags

Popular methods of ExportedTagSet

  • <init>
  • getName
  • setDescription
  • setLanguage
  • setName
  • setTags
  • getDescription
  • getLanguage
  • isCreateTag
  • setCreateTag
  • getTypeName
  • getTypeName

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Permission (java.security)
    Legacy security code; do not use.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top Sublime Text 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