scrimba
Awesome API's
Adding NLP to your app with MonkeyLearn
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Adding NLP to your app with MonkeyLearn
AboutCommentsNotes
Adding NLP to your app with MonkeyLearn
Expand for more info
index.js
run
preview
console
var tweets = [
`FAKE NEWS media knowingly doesn't tell the truth. A great danger to our country.
The failing @nytimes has become a joke. Likewise @CNN. Sad!`,
`I will not be attending the White House Correspondents' Association Dinner this year.
Please wish everyone well and have a great evening!`
];

$.ajax({
method: 'POST',
url: 'https://api.monkeylearn.com/v2/classifiers/cl_qkjxv9Ly/classify/?debug=1&sandbox=1',
headers: {
"Authorization": "token " + "4b9e42d5e009b503f750184e5ff84027cb7aa229",
},
contentType: 'application/json',
data: JSON.stringify({text_list: tweets}),
success: function(res){
console.log('res: ', res.result);
},
error: function(err) {
console.log(err);
}
});
Console
Preview
280×340 (100%)
index.html
-3:13