Codota Logo
ExportedAnnotationFeatureReference.<init>
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using de.tudarmstadt.ukp.clarin.webanno.export.model.ExportedAnnotationFeatureReference.<init> (Showing top 4 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: webanno/webanno

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

new ExportedAnnotationFeatureReference(layer.getAttachFeature()));
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

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<init>

Popular methods of ExportedAnnotationFeatureReference

  • getName
  • getLayer

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • getSystemService (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
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