public class SsurgeonUtils
extends java.lang.Object
| Constructor and Description |
|---|
SsurgeonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
moveNode(SemanticGraph sg,
SemgrexMatcher sm,
IndexedWord word,
int newIndex) |
static void |
moveNodes(SemanticGraph sg,
SemgrexMatcher sm,
java.util.function.Function<java.lang.Integer,java.lang.Boolean> shouldMove,
java.util.function.Function<java.lang.Integer,java.lang.Integer> destination,
boolean reverse)
reverse: operate in reverse order, highest index to first.
|
public static void moveNode(SemanticGraph sg, SemgrexMatcher sm, IndexedWord word, int newIndex)
public static void moveNodes(SemanticGraph sg, SemgrexMatcher sm, java.util.function.Function<java.lang.Integer,java.lang.Boolean> shouldMove, java.util.function.Function<java.lang.Integer,java.lang.Integer> destination, boolean reverse)