emotion-detection-api

1.0.1 • Public • Published

Emotion Detection API

A JavaScript package for detecting emotions in text using machine learning.

Installation

npm install emotion-detection-api

Usage

const EmotionDetectionAPI = require('emotion-detection-api');

// Create a new instance of the Emotion Detection API
const emotionDetector = new EmotionDetectionAPI();

// Analyze text to detect emotions
const text = 'I am feeling very happy and excited!';
const emotions = emotionDetector.detectEmotions(text);
console.log('Detected Emotions:', emotions);

API

detectEmotions(text)

Analyzes text to detect emotions and returns an array of detected emotions.

  • text: The text to analyze.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Readme

Keywords

none

Package Sidebar

Install

npm i emotion-detection-api

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

1.76 kB

Total Files

3

Last publish

Collaborators

  • klukvabanger