Examples of addAll()


Examples of weka.core.Instances.addAll()

        Instance c = new DenseInstance(2);
        c.setValue(stringAttr, "nothing here");
        c.setValue(anotherAttr, 0);
        instances.add(c);

        inputFormat.addAll(instances);
        filter.setInputFormat(inputFormat);
        Instances output = filter.getOutputFormat();

        for (int i = 0; i < instances.size(); i++) {
            Instance original = inputFormat.get(i);
View Full Code Here

Examples of weka.core.Trie.addAll()

      }

      // find all classes that start with that string
      list = ClassDiscovery.find(Object.class, pkg);
      tmpTrie = new Trie();
      tmpTrie.addAll(list);
      list = tmpTrie.getWithPrefix(partial);
      result.addAll(list);
     
      // sort the result
      if (result.size() > 1)
View Full Code Here

Examples of wyautl.core.Automaton.addAll()

        Types.SCHEMA);
    Automaton global = reader.read();

    for (int i = 0; i != size; ++i) {
      Automaton automaton = new Automaton();
      int root = automaton.addAll(global.getRoot(i), global);
      automaton.setRoot(0, root);
      SemanticType t = SemanticType.construct(automaton);
      myTypePool[i] = t;
    }
View Full Code Here

Examples of y.base.NodeList.addAll()

    public NodeList getDescendants(Node parentNode) {
        NodeList descendants = new NodeList();

        descendants.add(parentNode);
        for (NodeCursor nc = getHierarchyManager().getChildren(parentNode); nc.ok(); nc.next()) {
            descendants.addAll(getDescendants(nc.node()));
        }

        return descendants;
    }
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.