Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 1.14 KB

File metadata and controls

46 lines (38 loc) · 1.14 KB

Parser

Kind: global class

new Parser()

Can be accessed through textrazor.parser

parser.parse([text], opts) ⇒ Promise

Parses content for entity recognition. If text is not passed, opts.url is required.

Kind: instance method of Parser

ParamTypeDescription
[text]String

text to be parsed

optsObject

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);
  });