Tabnine Logo
AnnotationSuggestion.getId
Code IndexAdd Tabnine to your IDE (free)

How to use
getId
method
in
de.tudarmstadt.ukp.inception.recommendation.api.model.AnnotationSuggestion

Best Java code snippets using de.tudarmstadt.ukp.inception.recommendation.api.model.AnnotationSuggestion.getId (Showing top 4 results out of 315)

origin: inception-project/inception

/**
 * Returns the first prediction that matches recommendationId and recommenderId
 * in the given document.
 */
public Optional<AnnotationSuggestion> getPredictionByVID(SourceDocument aDocument, VID aVID)
{
  return predictions.values().stream()
      .filter(f -> f.getDocumentName().equals(aDocument.getName()))
      .filter(f -> f.getId() == aVID.getSubId())
      .filter(f -> f.getRecommenderId() == aVID.getId())
      .findFirst();
}
origin: inception-project/inception

/**
 * 
 * @param aLayerId
 * @param aPredictions - list of sentences containing recommendations
 */
public void putPredictions(long aLayerId, List<AnnotationSuggestion> aPredictions)
{
  aPredictions.forEach(prediction -> {
    if (prediction.getLabel() != null) {
      predictions.put(new ExtendedId(user.getUsername(), project.getId(),
          prediction.getDocumentName(), aLayerId, prediction.getOffset(),
          prediction.getRecommenderId(), prediction.getId(), -1), prediction);
    }
  });
}
origin: de.tudarmstadt.ukp.inception.app/inception-active-learning

alState.getCurrentDifference().get().getFirst().getId(),
updatedSuggestion.get().getId());
origin: inception-project/inception

alState.getCurrentDifference().get().getFirst().getId(),
updatedSuggestion.get().getId());
de.tudarmstadt.ukp.inception.recommendation.api.modelAnnotationSuggestiongetId

Popular methods of AnnotationSuggestion

  • getBegin
  • getConfidence
  • getEnd
  • getFeature
  • getLabel
  • getLayerId
  • getRecommenderId
  • isVisible
  • getCoveredText
  • getDocumentName
  • getOffset
  • getReasonForHiding
  • getOffset,
  • getReasonForHiding,
  • getRecommenderName,
  • getVID,
  • hide,
  • <init>,
  • equals,
  • getUiLabel,
  • show

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JFileChooser (javax.swing)
  • CodeWhisperer alternatives
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