sentiment-all 1.2.0beta → 1.2.1beta
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/Gemfile.lock +1 -1
- data/README.md +51 -22
- data/lib/sentiment_al/version.rb +1 -1
- data/sentiment_al.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 22a6be7f23cf4ef5a9f311a8ccb03dd652842d95b298b7f03c607b22ab212058
|
|
4
|
+
data.tar.gz: 24094fd543d3d8f8497b9043534c8fce72c8bd35110f0470585983d9fc5ee3eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2929c8ccc4c1a023007df672bce02353c2612a8907eb6d1fc5b19ebaa695d6970ad2d2b41dc8f79530af9d881c986b62237f05b36da74c4a93ffcfb64e688bda
|
|
7
|
+
data.tar.gz: b066ad5922df7e02ebb4e22d7f4c486d713e87e9191e13a38fdc705fbf3c30249e6a6803f7edcd6000e25946a78d7a01989f881dd7f953347c9367f12eda4080
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,31 +1,13 @@
|
|
|
1
|
-
# sentiment-
|
|
1
|
+
# sentiment-all
|
|
2
2
|
|
|
3
|
-
sentiment-
|
|
3
|
+
sentiment-all is Sentiment Analysis Service that allow the analysis of text throught [SENTIM-API](https://sentim-api.herokuapp.com/).
|
|
4
4
|
|
|
5
5
|
[](https://travis-ci.com/armando1339/sentiment-al) [](https://coveralls.io/github/armando1339/sentiment-al?branch=master)
|
|
6
6
|
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
Add this line to your application's Gemfile:
|
|
10
|
-
|
|
11
|
-
```ruby
|
|
12
|
-
gem 'sentiment-al'
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
And then execute:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
$ bundle install
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Or install it yourself as:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
$ gem install sentiment-al
|
|
25
|
-
```
|
|
26
|
-
|
|
27
7
|
## Usage
|
|
28
8
|
|
|
9
|
+
Just call the service passing through a text to be processed.
|
|
10
|
+
|
|
29
11
|
```ruby
|
|
30
12
|
|
|
31
13
|
# => Execute the service
|
|
@@ -51,6 +33,53 @@ sentiment_al.response.message
|
|
|
51
33
|
sentiment_al.response.body
|
|
52
34
|
```
|
|
53
35
|
|
|
36
|
+
It's also available the constant SentimentAl::Service.
|
|
37
|
+
|
|
38
|
+
```ruby
|
|
39
|
+
|
|
40
|
+
# => Execute the service
|
|
41
|
+
SentimentAl::Service.call text: "Candy"
|
|
42
|
+
|
|
43
|
+
# => Verify the SENTIM-API responce
|
|
44
|
+
SentimentAl::Service.successfully?
|
|
45
|
+
|
|
46
|
+
# => Verify the response
|
|
47
|
+
SentimentAl::Service.response
|
|
48
|
+
|
|
49
|
+
# => Response to hash
|
|
50
|
+
SentimentAl::Service.response_to_hash
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Verify the status of HTTP Request
|
|
55
|
+
|
|
56
|
+
```ruby
|
|
57
|
+
SentimentAl::Service.response
|
|
58
|
+
SentimentAl::Service.response.code
|
|
59
|
+
SentimentAl::Service.response.message
|
|
60
|
+
SentimentAl::Service.response.body
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Installation
|
|
64
|
+
|
|
65
|
+
Add this line to your application's Gemfile:
|
|
66
|
+
|
|
67
|
+
```ruby
|
|
68
|
+
gem 'sentiment-all', '~> 1.2.1beta'
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
And then execute:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
$ bundle install
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Or install it yourself as:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
$ gem install sentiment-all
|
|
81
|
+
```
|
|
82
|
+
|
|
54
83
|
## Development
|
|
55
84
|
|
|
56
85
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/sentiment_al/version.rb
CHANGED
data/sentiment_al.gemspec
CHANGED
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
|
15
15
|
spec.metadata["allowed_push_host"] = "https://rubygems.org/"
|
|
16
16
|
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
|
-
spec.metadata["source_code_uri"] = "https://github.com/armando1339"
|
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/armando1339/sentiment-all"
|
|
19
19
|
# spec.metadata["changelog_uri"] = "Put your gem's CHANGELOG.md URL here."
|
|
20
20
|
|
|
21
21
|
# Specify which files should be added to the gem when it is released.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sentiment-all
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1beta
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Armando Alejandre
|
|
@@ -68,7 +68,7 @@ licenses:
|
|
|
68
68
|
metadata:
|
|
69
69
|
allowed_push_host: https://rubygems.org/
|
|
70
70
|
homepage_uri: https://github.com/armando1339
|
|
71
|
-
source_code_uri: https://github.com/armando1339
|
|
71
|
+
source_code_uri: https://github.com/armando1339/sentiment-all
|
|
72
72
|
post_install_message:
|
|
73
73
|
rdoc_options: []
|
|
74
74
|
require_paths:
|