Codota Logo
IntOpenHashSet.clear
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain IntOpenHashSet
private void myMethod () {
IntOpenHashSet i =
  • Codota Iconnew IntOpenHashSet()
  • Smart code suggestions by Codota
}
origin: com.clearnlp/clearnlp

public void reInit()
{
  initPrimitives();
     l_branches.clear();
   l_states.clear();
      for (List<DEPHead> list : l_2ndHeads)
     list.clear();
      Arrays.fill(n_2ndPos, 0);
   s_reduce.clear();
   d_tree.clearHeads();             
}

origin: com.clearnlp/clearnlp

public void reInit()
{
  initPrimitives();
     l_branches.clear();
   l_states.clear();
      for (List<DEPHead> list : l_2ndHeads)
     list.clear();
      Arrays.fill(n_2ndPos, 0);
   s_reduce.clear();
   d_tree.clearHeads();             
}

origin: clearnlp/clearnlp

public void reInit()
{
  initPrimitives();
     l_branches.clear();
   l_states.clear();
      for (List<DEPHead> list : l_2ndHeads)
     list.clear();
      Arrays.fill(n_2ndPos, 0);
   s_reduce.clear();
   d_tree.clearHeads();             
}

origin: clearnlp/clearnlp

public void reInit()
{
  initPrimitives();
     l_branches.clear();
   l_states.clear();
      for (List<DEPHead> list : l_2ndHeads)
     list.clear();
      Arrays.fill(n_2ndPos, 0);
   s_reduce.clear();
   d_tree.clearHeads();             
}

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.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 label()
{
  DEPNode pred;
  
  while (i_pred < t_size)
  {
    pred = d_tree.get(i_pred);
    
    p_roleset = getRoleset(); 
    s_skip.clear();
    s_skip.add(i_pred);
    s_skip.add(DEPLib.ROOT_ID);
    l_argns.clear();
    m_argns.clear();
    
    d_lca = pred;
    do
    {
      labelAux(pred, d_lca);
      d_lca = d_lca.getHead();
    }
    while (d_lca != null);// && (pred.isDependentOf(d_lca) || s_up.contains(getDUPath(d_lca, pred))));
    
    i_pred = getNextPredId(i_pred);
  }
}

com.carrotsearch.hppcIntOpenHashSetclear

Popular methods of IntOpenHashSet

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

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
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