congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
IntOpenHashSet.add
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: clearnlp/clearnlp

public void addArgumentToSkipList()
{
  s_skip.add(i_arg);
}

origin: com.clearnlp/clearnlp

public void addArgumentToSkipList()
{
  s_skip.add(i_arg);
}

origin: com.clearnlp/clearnlp

public void reduce()
{
  s_reduce.add(i_lambda);
  passAux();
}

origin: clearnlp/clearnlp

public void reduce()
{
  s_reduce.add(i_lambda);
  passAux();
}

origin: clearnlp/clearnlp

public void reduce()
{
  s_reduce.add(i_lambda);
  passAux();
}

origin: com.clearnlp/clearnlp

public void reduce()
{
  s_reduce.add(i_lambda);
  passAux();
}

origin: com.googlecode.clearnlp/clearnlp

private void reduce()
{
  s_reduce.add(i_lambda);
  passAux();
}

origin: clearnlp/clearnlp

public DEPNode moveToNextPredicate()
{
  DEPNode pred = d_tree.getNextPredicate(i_pred);
  
  if (pred != null)
  {
    i_pred = pred.id;
    d_lca  = pred;
    l_argns.clear();
    m_argns.clear();
    s_skip.clear();
    s_skip.add(i_pred);
    s_skip.add(DEPLib.ROOT_ID);
  }
    
  return pred;
}

origin: com.clearnlp/clearnlp

public DEPNode moveToNextPredicate()
{
  DEPNode pred = d_tree.getNextPredicate(i_pred);
  
  if (pred != null)
  {
    i_pred = pred.id;
    d_lca  = pred;
    l_argns.clear();
    m_argns.clear();
    s_skip.clear();
    s_skip.add(i_pred);
    s_skip.add(DEPLib.ROOT_ID);
  }
    
  return pred;
}

origin: com.clearnlp/clearnlp

public IntOpenHashSet getSubTerminalIdSet()
{
  IntOpenHashSet set = new IntOpenHashSet();
  
  for (CTNode node : getSubTerminals())
    set.add(node.getTerminalId());
  
  return set;
}

origin: com.googlecode.clearnlp/clearnlp

public IntOpenHashSet getSubTerminalIdSet()
{
  IntOpenHashSet set = new IntOpenHashSet();
  
  for (CTNode node : getSubTerminals())
    set.add(node.getTerminalId());
  
  return set;
}

origin: clearnlp/clearnlp

private void getSubIdSetAux(IntOpenHashSet set, DEPNode curr)
{
  set.add(curr.id);
  
  for (DEPArc arc : curr.getDependents())
    getSubIdSetAux(set, arc.getNode());
}

origin: com.googlecode.clearnlp/clearnlp

@Deprecated
private void addNonProjectiveMap(IntObjectOpenHashMap<IntOpenHashSet> map, int cIdx, int nIdx)
{
  IntOpenHashSet set;
  
  if (map.containsKey(cIdx))
    set = map.get(cIdx);
  else
  {
    set = new IntOpenHashSet();
    map.put(cIdx, set);
  }
  
  set.add(nIdx);
}

origin: com.clearnlp/clearnlp

private void getSubIdSetAux(IntOpenHashSet set, DEPNode curr)
{
  set.add(curr.id);
  
  for (DEPArc arc : curr.getDependents())
    getSubIdSetAux(set, arc.getNode());
}

origin: com.googlecode.clearnlp/clearnlp

private void getSubIdSetAux(IntOpenHashSet set, DEPNode curr)
{
  set.add(curr.id);
  
  for (DEPArc arc : curr.getDependents())
    getSubIdSetAux(set, arc.getNode());
}

origin: clearnlp/clearnlp

@Deprecated
private void addNonProjectiveMap(IntObjectOpenHashMap<IntOpenHashSet> map, int cIdx, int nIdx)
{
  IntOpenHashSet set;
  
  if (map.containsKey(cIdx))
    set = map.get(cIdx);
  else
  {
    set = new IntOpenHashSet();
    map.put(cIdx, set);
  }
  
  set.add(nIdx);
}

origin: clearnlp/clearnlp

public IntOpenHashSet getSubTerminalIdSet()
{
  IntOpenHashSet set = new IntOpenHashSet();
  
  for (CTNode node : getSubTerminals())
    set.add(node.getTerminalId());
  
  return set;
}

origin: com.clearnlp/clearnlp

@Deprecated
private void addNonProjectiveMap(IntObjectOpenHashMap<IntOpenHashSet> map, int cIdx, int nIdx)
{
  IntOpenHashSet set;
  
  if (map.containsKey(cIdx))
    set = map.get(cIdx);
  else
  {
    set = new IntOpenHashSet();
    map.put(cIdx, set);
  }
  
  set.add(nIdx);
}

origin: com.googlecode.clearnlp/clearnlp

private void getPredicateIds(CTTree tree, IntOpenHashSet[] sets)
{
  for (IntOpenHashSet set : sets)
    set.clear();
      
  int idx;
  
  for (CTNode node : tree.getTokens())
  {
    idx = isVerbPredicate(tree, node);
    if (idx >= 0)	sets[idx].add(node.getTerminalId());
  }
}

origin: com.googlecode.clearnlp/clearnlp

private void addEditedTokensAux(CTNode curr, IntOpenHashSet set)
{
  for (CTNode child : curr.getChildren())
  {
    if (child.isPTag(CTLibEn.PTAG_EDITED) || (child.getChildrenSize() == 1 && child.getChild(0).isPTag(CTLibEn.PTAG_EDITED)))
    {
      for (CTNode sub : child.getSubTokens())
        set.add(sub.getTokenId()+1);
    }
    else if (child.isPhrase())
    {
      addEditedTokensAux(child, set);
    }
  }
}

com.carrotsearch.hppcIntOpenHashSetadd

Popular methods of IntOpenHashSet

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

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • getSystemService (Context)
  • putExtra (Intent)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now