@isabelle-ai/js-client
Version:
Lightweight Sentiment Analysis Client.
20 lines (15 loc) • 317 B
JavaScript
import Isabelle from '../dist';
const client = new Isabelle({
key: 'YOUR_API_KEY', // found on isabelle.ai
});
const extract = async () => {
try {
const sentiment = await client.sentiment({
text: 'I love apples!',
});
console.log(sentiment);
} catch (error) {
console.error(error);
}
};
extract();