https://github.com/nishantshah977/sentimo
A simple sentiment detector open-source module for node.js
https://github.com/nishantshah977/sentimo
ai javascript ml npm open-source sentiment sentiment-analysis sentiment-classification sentiment-polarity sentiment-scores
Last synced: about 2 months ago
JSON representation
A simple sentiment detector open-source module for node.js
- Host: GitHub
- URL: https://github.com/nishantshah977/sentimo
- Owner: nishantshah977
- License: gpl-3.0
- Created: 2023-04-10T12:35:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-11T04:45:48.000Z (about 2 years ago)
- Last Synced: 2025-01-18T14:11:48.558Z (3 months ago)
- Topics: ai, javascript, ml, npm, open-source, sentiment, sentiment-analysis, sentiment-classification, sentiment-polarity, sentiment-scores
- Language: JavaScript
- Homepage: https://github.com/nishantshah977/sentimo#readmeMd
- Size: 19.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sentimo
A simple sentiment detector open-source module for node.js
**This is my first project to listed on npm and with objective to help Beginners. It contains limited amount of data currently.**
# Installation```
npm i sentimo
```# Usage
**Basic Example**
```
const sentimo = require('sentimo');
const text = new sentimo();
const result = text.analyze("I am happy to try sentimo");
console.log(result);
```**Sentiment**
```
const sentimo = require('sentimo');
const text = new sentimo();
const result = text.analyze("I am happy to try sentimo");
\\ Add result.sentiment
console.log(result.sentiment);
```**Sentiment Score**
```
const sentimo = require('sentimo');
const text = new sentimo();
const result = text.analyze("I am happy to try sentimo");
// Add result.score
console.log(result.score);
```# Contributing
Fork the repo and make necessary changes and make pull request. Words with score are listed in `data.json`