sentimental 1.4.0 → 1.4.1
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/.gitignore +2 -0
- data/README.md +2 -2
- data/sentimental.gemspec +1 -3
- metadata +3 -24
- data/Gemfile.lock +0 -48
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa7dae46c18fc0a096ff67aaf912813b45720ad8
|
|
4
|
+
data.tar.gz: 85af49d6b6e8c63ea700e23bbacaa32d17f13131
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 42f5b50ce38d67b77aec0cf748922586c915b1f8ca5d1d34e55f6bd0fc7a108ad86e6030b028ff5cc838afce10743fd82fb4e7facbedba3bc2da94246b42ec3d
|
|
7
|
+
data.tar.gz: bde5eecf3d4a59501123e877b41fe6f3091036d4cacf5da43d16b28a8e46bab275e95f60318069e437cc58f807bd9193a96b2f546bbe55af5f67610f9596d692
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -4,9 +4,9 @@ Simple sentiment analysis with Ruby
|
|
|
4
4
|
|
|
5
5
|
## How it works
|
|
6
6
|
|
|
7
|
-
Sentences are tokenized
|
|
7
|
+
Sentences are tokenized and tokens are assigned a numerical score
|
|
8
8
|
for their average sentiment. The total score is then used to
|
|
9
|
-
determine the overall sentiment in relation to the
|
|
9
|
+
determine the overall sentiment in relation to the threshold.
|
|
10
10
|
|
|
11
11
|
For example, the default threshold is 0.0. If a sentence has
|
|
12
12
|
a score of 0, it is deemed "neutral". Higher than the thresold
|
data/sentimental.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |spec|
|
|
2
2
|
spec.name = 'sentimental'
|
|
3
|
-
spec.version = '1.4.
|
|
3
|
+
spec.version = '1.4.1'
|
|
4
4
|
spec.summary = 'Simple sentiment analysis'
|
|
5
5
|
spec.description = 'A simple sentiment analysis gem'
|
|
6
6
|
spec.authors = ['Jeff Emminger', 'Christopher MacLellan', 'Denis Pasin']
|
|
@@ -17,6 +17,4 @@ Gem::Specification.new do |spec|
|
|
|
17
17
|
spec.add_development_dependency "rake"
|
|
18
18
|
spec.add_development_dependency "rspec", ">= 3.0.0"
|
|
19
19
|
spec.add_development_dependency "rubocop", "~> 0.40", ">= 0.40.0"
|
|
20
|
-
|
|
21
|
-
spec.add_runtime_dependency "json", "~> 1.8", ">= 1.8.3"
|
|
22
20
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sentimental
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeff Emminger
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2016-
|
|
13
|
+
date: 2016-12-26 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: bundler
|
|
@@ -74,26 +74,6 @@ dependencies:
|
|
|
74
74
|
- - ">="
|
|
75
75
|
- !ruby/object:Gem::Version
|
|
76
76
|
version: 0.40.0
|
|
77
|
-
- !ruby/object:Gem::Dependency
|
|
78
|
-
name: json
|
|
79
|
-
requirement: !ruby/object:Gem::Requirement
|
|
80
|
-
requirements:
|
|
81
|
-
- - "~>"
|
|
82
|
-
- !ruby/object:Gem::Version
|
|
83
|
-
version: '1.8'
|
|
84
|
-
- - ">="
|
|
85
|
-
- !ruby/object:Gem::Version
|
|
86
|
-
version: 1.8.3
|
|
87
|
-
type: :runtime
|
|
88
|
-
prerelease: false
|
|
89
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
90
|
-
requirements:
|
|
91
|
-
- - "~>"
|
|
92
|
-
- !ruby/object:Gem::Version
|
|
93
|
-
version: '1.8'
|
|
94
|
-
- - ">="
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: 1.8.3
|
|
97
77
|
description: A simple sentiment analysis gem
|
|
98
78
|
email:
|
|
99
79
|
- jeff@7compass.com
|
|
@@ -106,7 +86,6 @@ files:
|
|
|
106
86
|
- ".rspec"
|
|
107
87
|
- ".rubocop.yml"
|
|
108
88
|
- Gemfile
|
|
109
|
-
- Gemfile.lock
|
|
110
89
|
- LICENSE.txt
|
|
111
90
|
- README.md
|
|
112
91
|
- Rakefile
|
|
@@ -140,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
140
119
|
version: '0'
|
|
141
120
|
requirements: []
|
|
142
121
|
rubyforge_project:
|
|
143
|
-
rubygems_version: 2.
|
|
122
|
+
rubygems_version: 2.5.1
|
|
144
123
|
signing_key:
|
|
145
124
|
specification_version: 4
|
|
146
125
|
summary: Simple sentiment analysis
|
data/Gemfile.lock
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
sentimental (1.4.0)
|
|
5
|
-
json (~> 1.8, >= 1.8.3)
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
ast (2.2.0)
|
|
11
|
-
diff-lcs (1.2.5)
|
|
12
|
-
json (1.8.3)
|
|
13
|
-
parser (2.3.1.0)
|
|
14
|
-
ast (~> 2.2)
|
|
15
|
-
powerpack (0.1.1)
|
|
16
|
-
rainbow (2.1.0)
|
|
17
|
-
rake (11.1.2)
|
|
18
|
-
rspec (3.4.0)
|
|
19
|
-
rspec-core (~> 3.4.0)
|
|
20
|
-
rspec-expectations (~> 3.4.0)
|
|
21
|
-
rspec-mocks (~> 3.4.0)
|
|
22
|
-
rspec-core (3.4.4)
|
|
23
|
-
rspec-support (~> 3.4.0)
|
|
24
|
-
rspec-expectations (3.4.0)
|
|
25
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
26
|
-
rspec-support (~> 3.4.0)
|
|
27
|
-
rspec-mocks (3.4.1)
|
|
28
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
29
|
-
rspec-support (~> 3.4.0)
|
|
30
|
-
rspec-support (3.4.1)
|
|
31
|
-
rubocop (0.40.0)
|
|
32
|
-
parser (>= 2.3.1.0, < 3.0)
|
|
33
|
-
powerpack (~> 0.1)
|
|
34
|
-
rainbow (>= 1.99.1, < 3.0)
|
|
35
|
-
ruby-progressbar (~> 1.7)
|
|
36
|
-
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
37
|
-
ruby-progressbar (1.8.0)
|
|
38
|
-
unicode-display_width (1.0.5)
|
|
39
|
-
|
|
40
|
-
PLATFORMS
|
|
41
|
-
ruby
|
|
42
|
-
|
|
43
|
-
DEPENDENCIES
|
|
44
|
-
bundler (~> 1.3)
|
|
45
|
-
rake
|
|
46
|
-
rspec (>= 3.0.0)
|
|
47
|
-
rubocop (~> 0.40, >= 0.40.0)
|
|
48
|
-
sentimental!
|