Sign Up

Log In

Text-Processing

FREEMIUM
By japerk
Updated 2 months ago
Other
9.5/10
Popularity Score
293ms
Latency
34%
Success Rate
jandark3 years ago
Wrong s expression result.For the following sentence s expression result should be as following: sentence: Medical advice ranges from the confusing to the disapproving, while a financial disincentive could even transpire in the form of a long-mooted tax on soft drinks. result: (ROOT (S (NP (NNP Medical) (NN advice)) (VP (VBZ ranges) (PP (IN from) (NP (DT the) (ADJP (JJ confusing) (PP (TO to) (NP (DT the) (NN disapproving)))))) (, ,) (SBAR (IN while) (S (NP (DT a) (JJ financial) (NN disincentive)) (VP (MD could) (ADVP (RB even)) (VP (VB transpire) (PP (IN in) (NP (NP (DT the) (NN form)) (PP (IN of) (NP (NP (DT a) (JJ long-mooted) (NN tax)) (PP (IN on) (NP (JJ soft) (NNS drinks)))))))))))) Your api response as there is only one node: { "text": "(S\n (GPE Medical/JJ)\n advice/NN\n ranges/NNS\n from/IN\n the/DT\n confusing/NN\n to/TO\n the/DT\n disapproving/NN\n ,/,\n while/IN\n a/DT\n financial/JJ\n disincentive/JJ\n could/MD\n even/RB\n transpire/VB\n in/IN\n the/DT\n form/NN\n of/IN\n a/DT\n long/JJ\n -/:\n mooted/VBN\n tax/NN\n on/IN\n soft/JJ\n drinks/NNS\n ./.)" }
jandark3 years ago
Ok, thanks.
japerk3 years ago
Hi, the tagging API does not do deep parsing. It only does phrase level chunking, and by default, focuses on NE chunks. Unfortunately, while the demo supports choosing the tagger/chunker, and treebank or conll2000 will produce the results you want, I do not have that enabled right now for the tag API.
Hi Developer, feel free to post your answer:
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://japerk-text-processing.p.rapidapi.com/phrases/")
.header("X-RapidAPI-Host", "undefined")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("language=undefined")
.send("text=<required>")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication

Sign up for free

to test this endpoint

Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard