/** * Returns the sorted list of terminal IDs belonging to this argument give the specific tree. * @param tree the constituent tree. * @return the sorted list of terminal IDs belonging to this argument give the specific tree. */ public int[] getSortedTerminalIdList(CTTree tree) { IntOpenHashSet set = getTerminalIdSet(tree); int[] ids = set.toArray(); Arrays.sort(ids); return ids; }
/** * Returns an array of IDs from the subtree of this node, including the ID of this node. * The array is sorted in ascending order. * @return an array of IDs from the subtree of this node, including the ID of this node. */ public int[] getSubIdArray() { IntOpenHashSet set = getSubIdSet(); int[] list = set.toArray(); Arrays.sort(list); return list; }
/** * Returns the sorted list of terminal IDs belonging to this argument give the specific tree. * @param tree the constituent tree. * @return the sorted list of terminal IDs belonging to this argument give the specific tree. */ public int[] getSortedTerminalIdList(CTTree tree) { IntOpenHashSet set = getTerminalIdSet(tree); int[] ids = set.toArray(); Arrays.sort(ids); return ids; }
/** * Returns an array of IDs from the subtree of this node, including the ID of this node. * The array is sorted in ascending order. * @return an array of IDs from the subtree of this node, including the ID of this node. */ public int[] getSubIdArray() { IntOpenHashSet set = getSubIdSet(); int[] list = set.toArray(); Arrays.sort(list); return list; }
/** * Returns an array of IDs from the subtree of this node, including the ID of this node. * The array is sorted in ascending order. * @return an array of IDs from the subtree of this node, including the ID of this node. */ public int[] getSubIdArray() { IntOpenHashSet set = getSubIdSet(); int[] list = set.toArray(); Arrays.sort(list); return list; }
/** * Returns the sorted list of terminal IDs belonging to this argument give the specific tree. * @param tree the constituent tree. * @return the sorted list of terminal IDs belonging to this argument give the specific tree. */ public int[] getSortedTerminalIdList(CTTree tree) { IntOpenHashSet set = getTerminalIdSet(tree); int[] ids = set.toArray(); Arrays.sort(ids); return ids; }
private int[] getSpan(DEPNode pred, DEPNode arg) { IntOpenHashSet sArg = arg .getSubIdSet(); if (pred.isDescendentOf(arg)) sArg.removeAll(pred.getSubIdSet()); int[] span = sArg.toArray(); return span; }
private int[] getSpan(DEPNode pred, DEPNode arg) { IntOpenHashSet sArg = arg .getSubIdSet(); if (pred.isDescendentOf(arg)) sArg.removeAll(pred.getSubIdSet()); int[] span = sArg.toArray(); return span; }
indices = set.toArray(); Arrays.sort(indices); build.append("tpc=");
indices = set.toArray(); Arrays.sort(indices); build.append("tpc=");
private int[] getSpan(DEPNode pred, DEPNode arg) { IntOpenHashSet sArg = arg .getSubIdSet(); if (pred.isDescendentOf(arg)) sArg.removeAll(pred.getSubIdSet()); int[] span = sArg.toArray(); return span; }
indices = set.toArray(); Arrays.sort(indices); build.append("tpc=");