Skip to content

Commit ef9baf0

Browse files
committed
Update doc - spaces are allowed if properly quoted
1 parent 2efab6d commit ef9baf0

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
@@ -112,9 +112,11 @@
112112
* {@code +} will be the last word of the sentence, and {@code -node} or {@code +node} will be before or after the
113113
* named node.
114114
* {@code ...attributes...} means any attributes which can be set from a string or numerical value
115-
* eg {@code -text ...} sets the text of the word (currently no spaces allowed, which would be a limitation for Vietnamese),
115+
* eg {@code -text ...} sets the text of the word
116116
* {@code -pos ...} sets the xpos of the word, {@code -cpos ...} sets the upos of the word, etc.
117117
* You cannot set the index of a word this way; an exception will be thrown.
118+
* To put whitespace in an attribute, you can quote it.
119+
* So, for example, a Vietnamese word can be set as {@code -word "xin chào"}
118120
*</p><p>
119121
* {@code editNode} will edit the attributes of a word.
120122
* {@code -node} is the node to edit.

0 commit comments

Comments
 (0)