apiverve_sentimentanalysis 1.2.2 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +32 -2
- data/lib/apiverve_sentimentanalysis.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 915e8070b9e65242c65327ec9fec5c96fe543b3d04629c6c2f70984607efbc1e
|
|
4
|
+
data.tar.gz: badfc6e6859c15edce10508ce577ad662dd3c7e82e1b3f4539787832bd3e62f3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d092a1ed1d7ca62d0270439929069758811b98f1120fa6688ce583a4abb2713d86b2d208545db1d3714644cfffff711616d0c33506f467ddd8d563e8144e02ca
|
|
7
|
+
data.tar.gz: e70f15dcf5a2d17b71e1172fb6067f81751eb9122ef7fcdbb88b36706bfbe1f485afe278f44b04d6e2b2027024721422ff67ee8c1947bd84611692ba09a4f676
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Sentiment Analysis API - Ruby Gem
|
|
2
2
|
|
|
3
|
-
Sentiment Analysis evaluates the emotional tone of any text string. It returns an AFINN valence score, a comparative word-normalized score, and a five-tier sentiment label from very negative to very positive.
|
|
3
|
+
Sentiment Analysis evaluates the emotional tone of any text string. It returns an AFINN valence score, a comparative word-normalized score, and a five-tier sentiment label from very negative to very positive. Paid plans add sentence-level labels from a transformer model, a mixed-sentiment flag, magnitude, and the words that drove the score.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -78,7 +78,37 @@ client = APIVerve::Sentimentanalysis::Client.new(
|
|
|
78
78
|
"sentiment": 3,
|
|
79
79
|
"isPositive": true,
|
|
80
80
|
"isNegative": false,
|
|
81
|
-
"normalizedScore": 0.3
|
|
81
|
+
"normalizedScore": 0.3,
|
|
82
|
+
"magnitude": 3,
|
|
83
|
+
"positiveWords": [
|
|
84
|
+
"excited"
|
|
85
|
+
],
|
|
86
|
+
"negativeWords": [],
|
|
87
|
+
"modelSentiment": "positive",
|
|
88
|
+
"modelScore": 0.98,
|
|
89
|
+
"isMixed": false,
|
|
90
|
+
"sentences": [
|
|
91
|
+
{
|
|
92
|
+
"text": "I'm so excited that tomorrow is going to be sunny!",
|
|
93
|
+
"label": "positive",
|
|
94
|
+
"confidence": 0.992,
|
|
95
|
+
"scores": {
|
|
96
|
+
"positive": 0.992,
|
|
97
|
+
"neutral": 0.006,
|
|
98
|
+
"negative": 0.002
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"text": "Can't wait!",
|
|
103
|
+
"label": "positive",
|
|
104
|
+
"confidence": 0.973,
|
|
105
|
+
"scores": {
|
|
106
|
+
"positive": 0.973,
|
|
107
|
+
"neutral": 0.024,
|
|
108
|
+
"negative": 0.003
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
]
|
|
82
112
|
}
|
|
83
113
|
}
|
|
84
114
|
```
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: apiverve_sentimentanalysis
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- APIVerve
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: faraday
|
|
@@ -60,7 +59,9 @@ dependencies:
|
|
|
60
59
|
version: '2.0'
|
|
61
60
|
description: Sentiment Analysis evaluates the emotional tone of any text string. It
|
|
62
61
|
returns an AFINN valence score, a comparative word-normalized score, and a five-tier
|
|
63
|
-
sentiment label from very negative to very positive.
|
|
62
|
+
sentiment label from very negative to very positive. Paid plans add sentence-level
|
|
63
|
+
labels from a transformer model, a mixed-sentiment flag, magnitude, and the words
|
|
64
|
+
that drove the score.
|
|
64
65
|
email:
|
|
65
66
|
- hello@apiverve.com
|
|
66
67
|
executables: []
|
|
@@ -79,7 +80,6 @@ metadata:
|
|
|
79
80
|
source_code_uri: https://github.com/apiverve/sentimentanalysis-API/tree/main/ruby
|
|
80
81
|
changelog_uri: https://apiverve.com/changelog
|
|
81
82
|
documentation_uri: https://docs.apiverve.com/ref/sentimentanalysis
|
|
82
|
-
post_install_message:
|
|
83
83
|
rdoc_options: []
|
|
84
84
|
require_paths:
|
|
85
85
|
- lib
|
|
@@ -94,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
95
|
version: '0'
|
|
96
96
|
requirements: []
|
|
97
|
-
rubygems_version:
|
|
98
|
-
signing_key:
|
|
97
|
+
rubygems_version: 4.0.23
|
|
99
98
|
specification_version: 4
|
|
100
99
|
summary: Sentiment Analysis API - Ruby Client
|
|
101
100
|
test_files: []
|