Codota Logo
ExportedAnnotationFeatureReference
Code IndexAdd Codota to your IDE (free)

How to use
ExportedAnnotationFeatureReference
in
de.tudarmstadt.ukp.clarin.webanno.export.model

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-ui-project

    exLayer.getAttachType().getName(), project);
AnnotationFeature attachFeature = annotationService
    .getFeature(exLayer.getAttachFeature().getName(), attachLayer);
layer.setAttachFeature(attachFeature);
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-dao

new ExportedAnnotationFeatureReference(layer.getAttachFeature()));
origin: webanno/webanno

template.setResult("---");
AnnotationLayer trainingLayer = annotationService
    .getLayer(exTemplate.getTrainFeature().getLayer(), aProject);
AnnotationFeature trainingFeature = annotationService
    .getFeature(exTemplate.getTrainFeature().getName(), trainingLayer);
template.setTrainFeature(trainingFeature);
Set<AnnotationFeature> otherFeatures = new HashSet<>();
if (exTemplate.getOtherFeatures() != null) {
  for (ExportedAnnotationFeatureReference other : exTemplate.getOtherFeatures()) {
    AnnotationLayer layer = annotationService.getLayer(other.getLayer(), aProject);
    AnnotationFeature feature = annotationService.getFeature(other.getName(),
        layer);
    otherFeatures.add(feature);
origin: webanno/webanno

    exLayer.getAttachType().getName(), project);
AnnotationFeature attachFeature = annotationService
    .getFeature(exLayer.getAttachFeature().getName(), attachLayer);
layer.setAttachFeature(attachFeature);
origin: webanno/webanno

private void importTrainingDocuments(ExportedProject aExProject, Project aProject)
  throws IOException
{
  ExportedTrainingDocument[] trainingDocuments = aExProject
      .getArrayProperty(TRAINING_DOCUMENTS, ExportedTrainingDocument.class);
  
  for (ExportedTrainingDocument importedTrainingDocument : trainingDocuments) {
    TrainingDocument trainingDocument = new TrainingDocument();
    trainingDocument.setFormat(importedTrainingDocument.getFormat());
    trainingDocument.setName(importedTrainingDocument.getName());
    trainingDocument.setState(importedTrainingDocument.getState());
    trainingDocument.setProject(aProject);
    trainingDocument.setTimestamp(importedTrainingDocument.getTimestamp());
    trainingDocument.setSentenceAccessed(importedTrainingDocument.getSentenceAccessed());
    if (importedTrainingDocument.getFeature() != null) {
      AnnotationLayer trainingLayer = annotationService
          .getLayer(importedTrainingDocument.getFeature().getLayer(), aProject);
      AnnotationFeature trainingFeature = annotationService
          .getFeature(importedTrainingDocument.getFeature().getName(), trainingLayer);
      trainingDocument.setFeature(trainingFeature);
    }
    automationService.createTrainingDocument(trainingDocument);
  }
}
origin: webanno/webanno

new ExportedAnnotationFeatureReference(layer.getAttachFeature()));
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api-dao

if (exLayer.getAttachFeature() != null) {
  AnnotationFeature attachFeature = annotationService
      .getFeature(exLayer.getAttachFeature().getName(), attachLayer);
  layer.setAttachFeature(attachFeature);
origin: webanno/webanno

@Override
public void exportData(ProjectExportRequest aRequest, ExportedProject aExProject, File aStage)
  throws Exception
{
  List<ExportedMiraTemplate> exTemplates = new ArrayList<>();
  for (MiraTemplate template : automationService.listMiraTemplates(aRequest.getProject())) {
    ExportedMiraTemplate exTemplate = new ExportedMiraTemplate();
    exTemplate.setAnnotateAndPredict(template.isAnnotateAndRepeat());
    exTemplate.setAutomationStarted(template.isAutomationStarted());
    exTemplate.setCurrentLayer(template.isCurrentLayer());
    exTemplate.setResult(template.getResult());
    exTemplate.setTrainFeature(
        new ExportedAnnotationFeatureReference(template.getTrainFeature()));
    if (template.getOtherFeatures().size() > 0) {
      Set<ExportedAnnotationFeatureReference> exOtherFeatures = new HashSet<>();
      for (AnnotationFeature feature : template.getOtherFeatures()) {
        exOtherFeatures.add(new ExportedAnnotationFeatureReference(feature));
      }
      exTemplate.setOtherFeatures(exOtherFeatures);
    }
    exTemplates.add(exTemplate);
  }
  aExProject.setProperty(MIRA_TEMPLATES, exTemplates);
}

origin: webanno/webanno

if (exLayer.getAttachFeature() != null) {
  AnnotationFeature attachFeature = annotationService
      .getFeature(exLayer.getAttachFeature().getName(), attachLayer);
  layer.setAttachFeature(attachFeature);
origin: webanno/webanno

private void exportTrainingDocuments(Project aProject, ExportedProject aExProject)
{
  List<ExportedTrainingDocument> trainDocuments = new ArrayList<>();
  List<TrainingDocument> trainingDocuments = automationService
      .listTrainingDocuments(aProject);
  
  for (TrainingDocument trainingDocument : trainingDocuments) {
    ExportedTrainingDocument exDocument = new ExportedTrainingDocument();
    exDocument.setFormat(trainingDocument.getFormat());
    exDocument.setName(trainingDocument.getName());
    exDocument.setState(trainingDocument.getState());
    exDocument.setTimestamp(trainingDocument.getTimestamp());
    exDocument.setSentenceAccessed(trainingDocument.getSentenceAccessed());
    // During imported, we only really use the name of the feature to look up the
    // actual AnnotationFeature in the project
    if (trainingDocument.getFeature() != null) {
      exDocument.setFeature(
          new ExportedAnnotationFeatureReference(trainingDocument.getFeature()));
    }
    trainDocuments.add(exDocument);
  }
  
  aExProject.setProperty(TRAINING_DOCUMENTS, trainDocuments);
}

de.tudarmstadt.ukp.clarin.webanno.export.modelExportedAnnotationFeatureReference

Javadoc

A by-name reference to a feature.

Most used methods

  • getName
  • <init>
  • getLayer

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getContentResolver (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JButton (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Option (scala)
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