Other logo formats:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const xhr = require('xhr'); | |
const vault = require('vault'); | |
// Use the PubNub Functions Vault Module to store these keys securely. | |
// Click the MY SECRETS button on the left. | |
export default (request) => { | |
console.log('1. original', request.message.text); | |
const getAPIKey = new Promise((resolve) => { |
Use natural language processing to detect abusive content, get sentiment analysis 2.0, topic modelling, and more, in 27 languages
Tisane API provides:
- Granular sentiment analysis (aspect-based sentiment analysis). Rather than a single figure, the result is a vector of values for specific targets
- Detection of abuse: hate speech / personal attacks / sexual advances / profanities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const vault = require('vault'); | |
const xhr = require('xhr'); | |
const basicAuth = require('codec/auth'); | |
// Use the PubNub Functions Vault Module to store these keys securely. | |
// username : '__YOUR_CLICKSEND_USER_NAME__' | |
// authKey : '__YOUR_CLICKSEND_AUTH_KEY__' | |
const url = 'https://rest.clicksend.com/v3/sms/send'; | |
export default (request) => { | |
const getAPIKeys = new Promise((resolve, reject) => { | |
vault.get('username').then((username) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default (request) => { | |
const xhr = require('xhr'); | |
console.log('1. original', request.message); | |
{ | |
return xhr.fetch('https://api.tisane.ai/parse', { | |
'method' : 'POST', | |
'headers' : { | |
'Ocp-Apim-Subscription-Key': '{your subscription key}' | |
}, | |
'body': JSON.stringify({ |