Class: NaturalLanguageUnderstandingV1

NaturalLanguageUnderstandingV1

new NaturalLanguageUnderstandingV1(options)

NaturalLanguageUnderstanding

Parameters:
Name Type Description
options
Source:

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
Name Type Attributes Description
concepts object <optional>

The concepts feature

entities object <optional>

The entities feature

keywords object <optional>

keywords feature

categories object <optional>

categories feature

emotion object <optional>

emotion feature

sentiment object <optional>

sentiment feature

relations object <optional>

relations feature

semantic_roles object <optional>

semantic roles feature

Source:
Returns:
Type
void
Example
```
const options = { 'text': 'I am some text to analyze, am I not cool?',
                  'features': {
                                'concepts': {},
                                'emotion': {},
                   },
                };
nlu.analyze(options, myCallbackFunction);
```