Skip to content

Commit 3b6684c

Browse files
committed
Add some doc on existing features for SplitWord
1 parent b301397 commit 3b6684c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/edu/stanford/nlp/semgraph/semgrex/ssurgeon/Ssurgeon.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@
166166
* {@code -node} is the node to split. <br>
167167
* {@code -headIndex} is the index (counting from 0) of the word piece to make the head. <br>
168168
* {@code -reln} is the name of the dependency type to use. pieces other than the head will connect using this relation <br>
169-
* {@code -regex} regex must match the matched node. all matching groups will be concatenated to form a new word. need at least 2 to split a word
169+
* {@code -regex} regex must match the matched node. all matching groups will be concatenated to form a new word. need at least 2 to split a word <br>
170+
* {@code -exact} instead of specifying matching regex, can split to exact pieces. need at least 2 to split a word <br>
171+
* {@code -name} will give names to the newly created. The format is #=name, comma separated
170172
*</p><p>
171173
* {@code setRoots} sets the roots of the sentence to a new root. <br>
172174
* {@code n1, n2, ...} are the names of the nodes from the Semgrex to use as the root(s). <br>

0 commit comments

Comments
 (0)