public void addAll(IntHashSet set) { super.addAll(set); } }
private BitSet[] createBitSets( ObjectObjectOpenHashMap<String, IntOpenHashSet> wordDocMapping, String[] wordset) { IntOpenHashSet hashSets[] = new IntOpenHashSet[wordset.length]; IntOpenHashSet mergedHashSet = new IntOpenHashSet(); for (int i = 0; i < hashSets.length; ++i) { hashSets[i] = wordDocMapping.get(wordset[i]); mergedHashSet.addAll(hashSets[i]); } return createBitSets(hashSets, mergedHashSet); }
/** * Returns a set of terminal IDs belonging to this argument given the specific tree. * @param tree the constituent tree. * @return a set of terminal IDs belonging to this argument. */ public IntOpenHashSet getTerminalIdSet(CTTree tree) { IntOpenHashSet set = new IntOpenHashSet(); for (PBLoc loc : l_locs) set.addAll(tree.getNode(loc).getSubTerminalIdSet()); return set; }
/** * Returns a set of terminal IDs belonging to this argument given the specific tree. * @param tree the constituent tree. * @return a set of terminal IDs belonging to this argument. */ public IntOpenHashSet getTerminalIdSet(CTTree tree) { IntOpenHashSet set = new IntOpenHashSet(); for (PBLoc loc : l_locs) set.addAll(tree.getNode(loc).getSubTerminalIdSet()); return set; }
/** * Returns a set of terminal IDs belonging to this argument given the specific tree. * @param tree the constituent tree. * @return a set of terminal IDs belonging to this argument. */ public IntOpenHashSet getTerminalIdSet(CTTree tree) { IntOpenHashSet set = new IntOpenHashSet(); for (PBLoc loc : l_locs) set.addAll(tree.getNode(loc).getSubTerminalIdSet()); return set; }
/** Returns the set of terminal IDs associated with this argument. */ private IntOpenHashSet getTerminalIdSet(PBArg arg, CTTree tree) { IntOpenHashSet set = new IntOpenHashSet(); for (PBLoc loc : arg.getLocs()) { if (!loc.isType(";")) set.addAll(tree.getNode(loc).getSubTerminalIdSet()); } return set; }
/** Returns the set of terminal IDs associated with this argument. */ private IntOpenHashSet getTerminalIdSet(PBArg arg, CTTree tree) { IntOpenHashSet set = new IntOpenHashSet(); for (PBLoc loc : arg.getLocs()) { if (!loc.isType(";")) set.addAll(tree.getNode(loc).getSubTerminalIdSet()); } return set; }
/** Returns the set of terminal IDs associated with this argument. */ private IntOpenHashSet getTerminalIdSet(PBArg arg, CTTree tree) { IntOpenHashSet set = new IntOpenHashSet(); for (PBLoc loc : arg.getLocs()) { if (!loc.isType(";")) set.addAll(tree.getNode(loc).getSubTerminalIdSet()); } return set; }