apiverve_sentimentanalysis 1.2.2 → 1.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4efd4d3dd02659839a4c17ccae0a081c65d70b262f44eefc4dc11fd07b3ac24
4
- data.tar.gz: 434f0466e1f7d4b3df13be9b8ecdc3f926a6a5ebf83650e5a8c12060cce81662
3
+ metadata.gz: 3006a59ea898ea5eb00a31a7808f0e6e4b54e6139f05be2deddce525ba6b1645
4
+ data.tar.gz: f66f7a4341e162473b29e720b3cb263690c6b5ad9509762af452dd47d88b0ee1
5
5
  SHA512:
6
- metadata.gz: 963ca5a3f05c8c5b96f5ee3fa87fdd0abb56f074fbb79c92a2742eeb9541f760c611108537bbd8a9af1ea6f09a93fd5b0b57a489ae9f199843bb3faf9770b0a8
7
- data.tar.gz: 11e0da5d78d33cf932e307c50f792e38574b94ad06d918496108e5febcd8adf286505c758d903a51b1666ec6ffb7e60c26e837dbc0f35ab24ec597a8577b8f3d
6
+ metadata.gz: 628b15f9f91a6c4482435b8ef49bd3ce70881ac79c1b0fd3b8abcb9dc7aebde85498d59be0a0149ff8cd90a3e2c5521cd9c466bdcf3da34f86da12e18974a1ff
7
+ data.tar.gz: 01f5e1bab0855de9678d1363dda80d330d82d198092f553696dd0c43f3cee870aa7fd4dd699cc30fe867cda8d67ea5afd7d7968ee678f678cbde3a8b1448cd4f
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
  ```
@@ -4,6 +4,6 @@ require_relative "apiverve_sentimentanalysis/client"
4
4
 
5
5
  module APIVerve
6
6
  module Sentimentanalysis
7
- VERSION = "1.2.2"
7
+ VERSION = "1.2.4"
8
8
  end
9
9
  end
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.2
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - APIVerve
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-10-21 00:00:00.000000000 Z
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: 3.0.3.1
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: []