Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobjmarks/quick-sentiment-analysis
GitHub Action to analyze sentiment of provided text.
https://github.com/jacobjmarks/quick-sentiment-analysis
actions github-actions
Last synced: 2 days ago
JSON representation
GitHub Action to analyze sentiment of provided text.
- Host: GitHub
- URL: https://github.com/jacobjmarks/quick-sentiment-analysis
- Owner: jacobjmarks
- Created: 2022-10-08T02:26:01.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-08T07:40:33.000Z (about 2 years ago)
- Last Synced: 2024-10-31T10:43:31.296Z (17 days ago)
- Topics: actions, github-actions
- Language: JavaScript
- Homepage: https://github.com/marketplace/actions/quick-sentiment-analysis
- Size: 235 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Quick Sentiment Analysis
Utilise the [`sentiment`](https://www.npmjs.com/package/sentiment) module to analyze the sentiment of provided text.
## Inputs
### `text`
Text to analyze
## Outputs
### `result`
Sentiment analysis results.
Result is formatted as JSON. Example:
``` json
{
"score": 1,
"comparative": 0.1111111111111111,
"calculation": [ { "allergic": -2 }, { "love": 3 } ],
"tokens": [
"i",
"love",
"cats",
"but",
"i",
"am",
"allergic",
"to",
"them"
],
"words": [
"allergic",
"love"
],
"positive": [
"love"
],
"negative": [
"allergic"
]
}
```## Example usage
``` yaml
- uses: jacobjmarks/quick-sentiment-analysis@v1
id: sentiment-analysis
with:
text: "I love cats, but I am allergic to them."- run: echo '${{ steps.sentiment-analysis.outputs.result }}'
```