Tabnine Logo
IntOpenHashSet.contains
Code IndexAdd Tabnine to your IDE (free)

How to use
contains
method
in
com.carrotsearch.hppc.IntOpenHashSet

Best Java code snippets using com.carrotsearch.hppc.IntOpenHashSet.contains (Showing top 20 results out of 315)

origin: com.clearnlp/clearnlp

public void passAux()
{
  int i;
  
  for (i=i_lambda-1; i>=0; i--)
  {
    if (!s_reduce.contains(i))
    {
      i_lambda = i;
      return;
    }
  }
  
  i_lambda = i;
}

origin: com.clearnlp/clearnlp

public boolean isSkip(DEPNode node)
{
  return s_skip.contains(node.id);
}

origin: com.clearnlp/clearnlp

public void passAux()
{
  int i;
  
  for (i=i_lambda-1; i>=0; i--)
  {
    if (!s_reduce.contains(i))
    {
      i_lambda = i;
      return;
    }
  }
  
  i_lambda = i;
}

origin: clearnlp/clearnlp

public void passAux()
{
  int i;
  
  for (i=i_lambda-1; i>=0; i--)
  {
    if (!s_reduce.contains(i))
    {
      i_lambda = i;
      return;
    }
  }
  
  i_lambda = i;
}

origin: clearnlp/clearnlp

public boolean isSkip(DEPNode node)
{
  return s_skip.contains(node.id);
}

origin: com.googlecode.clearnlp/clearnlp

protected void passAux()
{
  int i;
  
  for (i=i_lambda-1; i>=0; i--)
  {
    if (!s_reduce.contains(i))
    {
      i_lambda = i;
      return;
    }
  }
  
  i_lambda = i;
}

origin: clearnlp/clearnlp

public void passAux()
{
  int i;
  
  for (i=i_lambda-1; i>=0; i--)
  {
    if (!s_reduce.contains(i))
    {
      i_lambda = i;
      return;
    }
  }
  
  i_lambda = i;
}

origin: com.clearnlp/clearnlp

/** Called by {@link #getGoldLabel()}. */
private boolean isGoldShift()
{
  if (g_labels[i_beta].i < i_lambda)
    return false;
  
  int i;
  
  for (i=i_lambda-1; i>0; i--)
  {
    if (s_reduce.contains(i))
      continue;
    
    if (g_labels[i].i == i_beta)
      return false;
  }
  
  return true;
}

origin: com.googlecode.clearnlp/clearnlp

/** Called by {@link AbstractDEPParser#getGoldLabel()}. */
private boolean isGoldShift()
{
  if (g_heads[i_beta].i < i_lambda)
    return false;
  
  int i;
  
  for (i=i_lambda-1; i>0; i--)
  {
    if (s_reduce.contains(i))
      continue;
    
    if (g_heads[i].i == i_beta)
      return false;
  }
  
  return true;
}

origin: clearnlp/clearnlp

/** Called by {@link #getGoldLabel()}. */
private boolean isGoldShift()
{
  if (g_labels[i_beta].i < i_lambda)
    return false;
  
  int i;
  
  for (i=i_lambda-1; i>0; i--)
  {
    if (s_reduce.contains(i))
      continue;
    
    if (g_labels[i].i == i_beta)
      return false;
  }
  
  return true;
}

origin: clearnlp/clearnlp

/** Called by {@link #getGoldLabel()}. */
private boolean isGoldShift()
{
  if (g_labels[i_beta].i < i_lambda)
    return false;
  
  int i;
  
  for (i=i_lambda-1; i>0; i--)
  {
    if (s_reduce.contains(i))
      continue;
    
    if (g_labels[i].i == i_beta)
      return false;
  }
  
  return true;
}

origin: clearnlp/clearnlp

private <T extends DEPArc>void removeEditedHeads(List<T> heads, IntOpenHashSet set)
{
  List<T> remove = Lists.newArrayList();
  
  for (T arc : heads)
  {
    if (set.contains(arc.getNode().id))
      remove.add(arc);
  }
  
  heads.removeAll(remove);
}

origin: com.googlecode.clearnlp/clearnlp

private <T extends DEPArc>void removeEditedHeads(List<T> heads, IntOpenHashSet set)
{
  List<T> remove = Lists.newArrayList();
  
  for (T arc : heads)
  {
    if (set.contains(arc.getNode().id))
      remove.add(arc);
  }
  
  heads.removeAll(remove);
}

origin: com.clearnlp/clearnlp

private <T extends DEPArc>void removeEditedHeads(List<T> heads, IntOpenHashSet set)
{
  List<T> remove = Lists.newArrayList();
  
  for (T arc : heads)
  {
    if (set.contains(arc.getNode().id))
      remove.add(arc);
  }
  
  heads.removeAll(remove);
}

origin: com.clearnlp/clearnlp

/** Called by {@link #getNode(FtrToken)}. */
private DEPNode getNodeStack(FtrToken token)
{
  if (token.offset == 0)
    return d_tree.get(i_lambda);
  
  int offset = Math.abs(token.offset), i;
  int dir = (token.offset < 0) ? -1 : 1;
        
  for (i=i_lambda+dir; 0<i && i<i_beta; i+=dir)
  {
    if (!s_reduce.contains(i) && --offset == 0)
      return d_tree.get(i);
  }
  
  return null;
}

origin: com.clearnlp/clearnlp

/** Called by {@link #getNode(FtrToken)}. */
private DEPNode getNodeStack(FtrToken token)
{
  if (token.offset == 0)
    return d_tree.get(i_lambda);
  
  int offset = Math.abs(token.offset), i;
  int dir = (token.offset < 0) ? -1 : 1;
        
  for (i=i_lambda+dir; 0<i && i<i_beta; i+=dir)
  {
    if (!s_reduce.contains(i) && --offset == 0)
      return d_tree.get(i);
  }
  
  return null;
}

origin: clearnlp/clearnlp

/** Called by {@link #getNode(FtrToken)}. */
private DEPNode getNodeStack(FtrToken token)
{
  if (token.offset == 0)
    return d_tree.get(i_lambda);
  
  int offset = Math.abs(token.offset), i;
  int dir = (token.offset < 0) ? -1 : 1;
        
  for (i=i_lambda+dir; 0<i && i<i_beta; i+=dir)
  {
    if (!s_reduce.contains(i) && --offset == 0)
      return d_tree.get(i);
  }
  
  return null;
}

origin: com.googlecode.clearnlp/clearnlp

/** Called by {@link AbstractDEPParser#getNode(FtrToken)}. */
private DEPNode getNodeStack(FtrToken token)
{
  if (token.offset == 0)
    return d_tree.get(i_lambda);
  
  int offset = Math.abs(token.offset), i;
  int dir    = (token.offset < 0) ? -1 : 1;
        
  for (i=i_lambda+dir; 0<i && i<i_beta; i+=dir)
  {
    if (!s_reduce.contains(i) && --offset == 0)
      return d_tree.get(i);
  }
  
  return null;
}
origin: clearnlp/clearnlp

/** Called by {@link #getNode(FtrToken)}. */
private DEPNode getNodeStack(FtrToken token)
{
  if (token.offset == 0)
    return d_tree.get(i_lambda);
  
  int offset = Math.abs(token.offset), i;
  int dir = (token.offset < 0) ? -1 : 1;
        
  for (i=i_lambda+dir; 0<i && i<i_beta; i+=dir)
  {
    if (!s_reduce.contains(i) && --offset == 0)
      return d_tree.get(i);
  }
  
  return null;
}

origin: com.googlecode.clearnlp/clearnlp

/** Called by {@link AbstractSRLabeler#label(DEPTree)}. */
private void labelAux(DEPNode pred, DEPNode head)
{
  if (!s_skip.contains(head.id))
  {
    i_arg = head.id;
    addArgument(getLabel(getDirIndex()));    
  }
  
  labelDown(pred, head.getDependents());
}

com.carrotsearch.hppcIntOpenHashSetcontains

Popular methods of IntOpenHashSet

  • <init>
  • addAll
  • add
  • size
  • clear
  • clone
  • isEmpty
  • remove
  • removeAll
  • retainAll
  • toArray
  • from
  • toArray,
  • from

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • Menu (java.awt)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top plugins for WebStorm
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