Tabnine Logo
SuggestionGroup.getOffset
Code IndexAdd Tabnine to your IDE (free)

How to use
getOffset
method
in
de.tudarmstadt.ukp.inception.recommendation.api.model.SuggestionGroup

Best Java code snippets using de.tudarmstadt.ukp.inception.recommendation.api.model.SuggestionGroup.getOffset (Showing top 3 results out of 315)

origin: inception-project/inception

private List<AnnotationSuggestion> getMatchingSuggestion(List<SuggestionGroup> aSuggestions,
    String aDocumentName, long aLayerId, String aFeature, int aBegin, int aEnd,
    String aLabel)
{
  return aSuggestions.stream()
      .filter(group -> 
          aDocumentName.equals(group.getDocumentName()) &&
          aLayerId == group.getLayerId() &&
          (aFeature == null || aFeature == group.getFeature()) &&
          (aBegin == -1 || aBegin == group.getOffset().getBegin()) &&
          (aEnd == -1 || aEnd == group.getOffset().getEnd()))
      .flatMap(group -> group.stream())
      .filter(suggestion ->
          aLabel == null || aLabel.equals(suggestion.getLabel()))
      .collect(toList());
}
origin: de.tudarmstadt.ukp.inception.app/inception-active-learning

private List<AnnotationSuggestion> getMatchingSuggestion(List<SuggestionGroup> aSuggestions,
    String aDocumentName, long aLayerId, String aFeature, int aBegin, int aEnd,
    String aLabel)
{
  return aSuggestions.stream()
      .filter(group -> 
          aDocumentName.equals(group.getDocumentName()) &&
          aLayerId == group.getLayerId() &&
          (aFeature == null || aFeature == group.getFeature()) &&
          (aBegin == -1 || aBegin == group.getOffset().getBegin()) &&
          (aEnd == -1 || aEnd == group.getOffset().getEnd()))
      .flatMap(group -> group.stream())
      .filter(suggestion ->
          aLabel == null || aLabel.equals(suggestion.getLabel()))
      .collect(toList());
}
origin: inception-project/inception

    Offset offset = group.getOffset();
    return aWindowBegin <= offset.getBegin() && offset.getEnd() <= aWindowEnd;
  })
suggestionsInWindow.stream()
    .filter(group -> group.getFeature().equals(feature.getName()))
    .forEach(group -> suggestions.put(group.getOffset(), group));
de.tudarmstadt.ukp.inception.recommendation.api.modelSuggestionGroupgetOffset

Popular methods of SuggestionGroup

  • stream
  • add
  • forEach
  • getDocumentName
  • getFeature
  • getLayerId
  • group
  • <init>
  • collector
  • ensureSortedState
  • get
  • getTopDeltas
  • get,
  • getTopDeltas,
  • isEmpty,
  • size

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 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