Codota Logo
SuggestionGroup.getLayerId
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
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

.filter(group -> group.getLayerId() == aLayer.getId())
de.tudarmstadt.ukp.inception.recommendation.api.modelSuggestionGroupgetLayerId

Popular methods of SuggestionGroup

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

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • setContentView (Activity)
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • JCheckBox (javax.swing)
  • JComboBox (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
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