sad_panda 1.0.1 → 1.1.0
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 +7 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/README.md +11 -8
- data/lib/sad_panda.rb +11 -162
- data/lib/sad_panda/{emotions → bank}/emotions.csv +0 -0
- data/lib/sad_panda/bank/emotions.rb +18 -0
- data/lib/sad_panda/bank/polarities.rb +1466 -0
- data/lib/sad_panda/bank/stopwords.rb +43 -0
- data/lib/sad_panda/{emotions → bank}/subjectivity.csv +0 -0
- data/lib/sad_panda/emotion.rb +78 -0
- data/lib/sad_panda/helpers.rb +62 -0
- data/lib/sad_panda/polarity.rb +46 -0
- data/lib/sad_panda/version.rb +1 -1
- data/sad_panda.gemspec +12 -11
- data/spec/sad_panda/bank/emotions_spec.rb +45 -0
- data/spec/sad_panda/bank/polarities_spec.rb +13 -0
- data/spec/sad_panda/bank/stopwords_spec.rb +13 -0
- data/spec/sad_panda/emotion_spec.rb +175 -0
- data/spec/sad_panda/helpers_spec.rb +73 -0
- data/spec/sad_panda/polarity_spec.rb +87 -0
- data/spec/sad_panda_spec.rb +47 -375
- data/spec/spec_helper.rb +3 -3
- metadata +41 -45
- data/lib/sad_panda/emotions/emotion_bank.rb +0 -265
- data/lib/sad_panda/emotions/stopwords.rb +0 -42
- data/lib/sad_panda/emotions/term_polarities.rb +0 -1467
- data/spec/emotion_bank_spec.rb +0 -16
- data/spec/term_polarities_spec.rb +0 -16
data/spec/emotion_bank_spec.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe EmotionBank do
|
4
|
-
|
5
|
-
let(:output) {EmotionBank.get_term_emotions}
|
6
|
-
|
7
|
-
describe "when EmotionBank module is called" do
|
8
|
-
it 'returns a hash' do
|
9
|
-
expect(output.class).to eql(Hash)
|
10
|
-
end
|
11
|
-
|
12
|
-
it "is non-empty" do
|
13
|
-
expect(output).to_not be_empty
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe TermPolarities do
|
4
|
-
describe "when TermPolarities module is called" do
|
5
|
-
|
6
|
-
let(:output) {TermPolarities.get_term_polarities}
|
7
|
-
|
8
|
-
it "returns a hash" do
|
9
|
-
expect(output.class).to eql(Hash)
|
10
|
-
end
|
11
|
-
|
12
|
-
it "is non empty" do
|
13
|
-
expect(output).to_not be_empty
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|