File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/edu/stanford/nlp/semgraph/semgrex/ssurgeon Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 112
112
* {@code +} will be the last word of the sentence, and {@code -node} or {@code +node} will be before or after the
113
113
* named node.
114
114
* {@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
116
116
* {@code -pos ...} sets the xpos of the word, {@code -cpos ...} sets the upos of the word, etc.
117
117
* 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"}
118
120
*</p><p>
119
121
* {@code editNode} will edit the attributes of a word.
120
122
* {@code -node} is the node to edit.
You can’t perform that action at this time.
0 commit comments