Examples of toSet()


Examples of com.clearnlp.util.map.Prob1DMap.toSet()

      reader.close();
      map.addAll(set);
      LOG.debug(".");
    LOG.debug("\n");
   
    return map.toSet(xml.getDocumentFrequencyCutoff());
  }
 
  protected Embedding getEmbedding(Element eConfig)
  {
    Element eEmbed = UTXml.getFirstElementByTagName(eConfig, "embedding");
View Full Code Here

Examples of com.clearnlp.util.map.Prob1DMap.toSet()

      map.addAll(set);
      reader.close();
      LOG.info(".");
    LOG.info("\n");
   
    return map.toSet(cutoff);
  }
 
  private Set<String> getLowerSimplifiedFormsByDocumentFrequencies(JointReader reader, String[] filenames, int devId, int cutoff, int maxCount)
  {
    int i, j, len, count = 0, size = filenames.length;
View Full Code Here

Examples of com.clearnlp.util.map.Prob1DMap.toSet()

     
      reader.close();
    LOG.info("\n");
   
    if (!set.isEmpty()) map.addAll(set);
    return map.toSet(cutoff);
  }
 
  static public void main(String[] args)
  {
    new NLPDevelop(args);
View Full Code Here

Examples of com.clearnlp.util.map.Prob1DMap.toSet()

      reader.close();
      map.addAll(set);
      LOG.debug(".");
    LOG.debug("\n");
   
    return map.toSet(xml.getDocumentFrequencyCutoff());
  }
}
View Full Code Here

Examples of com.clearnlp.util.map.Prob1DMap.toSet()

     
      reader.close();
    }
   
    if (!set.isEmpty()) map.addAll(set);
    return map.toSet(cutoff);
  }
 
  protected List<DEPTree> getTrees(JointReader reader, String[] filenames)
  {
    List<DEPTree> trees = Lists.newArrayList();
View Full Code Here

Examples of com.hp.hpl.jena.util.iterator.ExtendedIterator.toSet()

    InfGraph graph = context.getGraph();

    Node s = env.getGroundVersion(args[0]);
    Node p = env.getGroundVersion(args[1]);
    ExtendedIterator i = graph.find(s,p,null);
    int n = i.toSet().size();
   
    TypeMapper tm = TypeMapper.getInstance();
    RDFDatatype type = tm.getTypeByName(XSD.xint.getURI());
    Node count = Node.createLiteral(Integer.toString(n),null,type);
    env.bind(args[2],count);
View Full Code Here

Examples of org.jclouds.openstack.keystone.v2_0.functions.internal.ParseUsers.Users.toSet()

   }

   public void testParseUsers() throws JsonSyntaxException, IOException {
      String json = Strings2.toStringAndClose(getClass().getResourceAsStream("/user_list.json"));
      Users users = gson.fromJson(json, Users.class);
      assertEquals(users.toSet(), expectedUsers);
   }
}
View Full Code Here

Examples of org.jclouds.openstack.keystone.v2_0.functions.internal.ParseUsers.Users.toSet()

   }

   public void testParseUsers() throws JsonSyntaxException, IOException {
      String json = Strings2.toStringAndClose(getClass().getResourceAsStream("/user_list.json"));
      Users users = gson.fromJson(json, Users.class);
      assertEquals(users.toSet(), expectedUsers);
   }
}
View Full Code Here

Examples of org.jclouds.openstack.keystone.v2_0.functions.internal.ParseUsers.Users.toSet()

   }

   public void testParseUsers() throws JsonSyntaxException, IOException {
      String json = Strings2.toStringAndClose(getClass().getResourceAsStream("/user_list.json"));
      Users users = gson.fromJson(json, Users.class);
      assertEquals(users.toSet(), expectedUsers);
   }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.