Kind: global class
- Parser
- new Parser()
- .parse([text], opts) ⇒
Promise
Can be accessed through textrazor.parser
Parses content for entity recognition. If text is not passed, opts.url is required.
Kind: instance method of Parser
| Param | Type | Description |
|---|---|---|
| [text] | String | text to be parsed |
| opts | Object | other request options. See https://www.textrazor.com/docs/rest#analysis |
Example
textrazor.parser.parse('The Sword of One Thousand Truths holds unspeakable powers.')
.then((results) => {
console.log(results);
})
.catch((err) => {
console.log(err);
});