|
179 | 179 | id="node-input-maxsemantics" /> |
180 | 180 | </div> |
181 | 181 |
|
| 182 | + <div> |
| 183 | + <input style="width: 30px; margin-left: 20px; margin-top: 0;" |
| 184 | + type="checkbox" id="node-input-syntax" /> |
| 185 | + <label style="width: auto;" for="node-input-syntax">Syntax</label> |
| 186 | + </div> |
| 187 | + <div> |
| 188 | + <input style="width: 30px; margin-left: 20px; margin-top: 0;" |
| 189 | + type="checkbox" id="node-input-syntax-sentences" /> |
| 190 | + <label style="width: auto;" for="node-input-syntax-sentences">Syntax Sentences</label> |
| 191 | + </div> |
| 192 | + <div> |
| 193 | + <input style="width: 30px; margin-left: 20px; margin-top: 0;" |
| 194 | + type="checkbox" id="node-input-syntax-tokens-lemma" /> |
| 195 | + <label style="width: auto;" for="node-input-syntax-tokens-lemma">Lemma Tokens</label> |
| 196 | + </div> |
| 197 | + <div> |
| 198 | + <input style="width: 30px; margin-left: 20px; margin-top: 0;" |
| 199 | + type="checkbox" id="node-input-syntax-tokens-pos" /> |
| 200 | + <label style="width: auto;" for="node-input-syntax-tokens-pos">Part of Speech</label> |
| 201 | + </div> |
| 202 | + |
182 | 203 | </div> |
183 | 204 | </div> |
184 | 205 |
|
|
215 | 236 | <li><b>Relations</b>, identify Subject-Action-Object relations.</li> |
216 | 237 | <li><b>Semantic Roles</b>, parse out sentences into subject, |
217 | 238 | action, and object form.</li> |
| 239 | + <li><b>Syntax</b>, Returns information about the tokens and sentences in |
| 240 | + the input text. </li> |
218 | 241 |
|
219 | 242 | </ul> |
220 | 243 | <p> |
221 | 244 | You can limit the text analyzed by setting limit text characters. A value |
222 | | - of 0 applies no limit. |
| 245 | + of 0 applies no limit. |
223 | 246 | </p> |
224 | 247 | <p>For full details on the feature details, |
225 | 248 | please see the |
|
265 | 288 | $('#node-input-semantic-entities').parent().hide(); |
266 | 289 | $('#node-input-semantic-keywords').parent().hide(); |
267 | 290 | $('#node-input-maxsemantics').parent().hide(); |
| 291 | + $('#node-input-syntax-sentences').parent().hide(); |
| 292 | + $('#node-input-syntax-tokens-lemma').parent().hide(); |
| 293 | + $('#node-input-syntax-tokens-pos').parent().hide(); |
268 | 294 | }; |
269 | 295 |
|
270 | 296 | nluV1.setVisibility = function(field, visible) { |
|
318 | 344 | nluV1.CreateIListener($('#node-input-default-endpoint'), |
319 | 345 | $('#node-input-service-endpoint'), true); |
320 | 346 |
|
| 347 | + nluV1.CreateIListener($('#node-input-syntax'), |
| 348 | + $('#node-input-syntax-sentences' |
| 349 | + + ', #node-input-syntax-tokens-lemma' |
| 350 | + + ', #node-input-syntax-tokens-pos')); |
| 351 | + |
| 352 | + |
321 | 353 | } |
322 | 354 |
|
323 | 355 | nluV1.checkForPrepare = function () { |
|
368 | 400 | 'semantic-keywords': {value: false}, |
369 | 401 | 'maxsemantics' :{value: '50'}, |
370 | 402 | 'limittextcharacters': {value: '0'}, |
| 403 | + 'syntax': {value: false}, |
| 404 | + 'syntax-sentences': {value: false}, |
| 405 | + 'syntax-tokens-lemma': {value: false}, |
| 406 | + 'syntax-tokens-pos': {value: false}, |
371 | 407 | 'default-endpoint' :{value: true}, |
372 | 408 | 'service-endpoint' :{value: 'https://gateway.watsonplatform.net/natural-language-understanding/api'} |
373 | 409 | }, |
|
0 commit comments