new NaturalLanguageUnderstandingV1(options)
NaturalLanguageUnderstanding
Parameters:
| Name | Type | Description |
|---|---|---|
options |
Methods
analyze() → {void}
Analyze the query.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params.headers |
Object |
<optional> |
The headers added |
||||||||||||||||||||||||||||||||||||
params.text |
string |
<optional> |
The text to analyze. |
||||||||||||||||||||||||||||||||||||
params.html |
string |
<optional> |
The html to analyze. |
||||||||||||||||||||||||||||||||||||
params.url |
string |
<optional> |
The url to fetch and analyze. |
||||||||||||||||||||||||||||||||||||
params.features |
object |
<optional> |
The features to retrieve (need at least one) Properties
|
Returns:
- Type
- void
Example
```
const options = { 'text': 'I am some text to analyze, am I not cool?',
'features': {
'concepts': {},
'emotion': {},
},
};
nlu.analyze(options, myCallbackFunction);
```