-
-
Save ch1ago/1669019 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.94 | |
@tag.score = 100 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.89 | |
@tag.score = 96 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.84 | |
@tag.score = 92 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.79 | |
@tag.score = 88 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.74 | |
@tag.score = 86 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.69 | |
@tag.score = 84 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.64 | |
@tag.score = 82 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.59 | |
@tag.score = 80 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.54 | |
@tag.score = 78 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.49 | |
@tag.score = 76 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.44 | |
@tag.score = 74 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.39 | |
@tag.score = 72 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.34 | |
@tag.score = 70 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.29 | |
@tag.score = 68 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.24 | |
@tag.score = 66 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.19 | |
@tag.score = 64 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0.14 | |
@tag.score = 62 | |
elsif | |
@sentiment["mood"] == positive && @sentiment["prob"] > 0 | |
@tag.score = 60 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.94 | |
@tag.score = 59 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.89 | |
@tag.score = 58 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.84 | |
@tag.score = 57 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.79 | |
@tag.score = 56 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.74 | |
@tag.score = 55 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.69 | |
@tag.score = 53 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.64 | |
@tag.score = 52 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.59 | |
@tag.score = 51 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.54 | |
@tag.score = 50 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.49 | |
@tag.score = 49 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.44 | |
@tag.score = 48 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.39 | |
@tag.score = 47 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.34 | |
@tag.score = 46 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.29 | |
@tag.score = 45 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.24 | |
@tag.score = 43 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.19 | |
@tag.score = 42 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0.14 | |
@tag.score = 41 | |
elsif | |
@sentiment["mood"] == neutral && @sentiment["prob"] > 0 | |
@tag.score = 40 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.94 | |
@tag.score = 39 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.89 | |
@tag.score = 38 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.84 | |
@tag.score = 36 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.79 | |
@tag.score = 34 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.74 | |
@tag.score = 32 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.69 | |
@tag.score = 30 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.64 | |
@tag.score = 28 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.59 | |
@tag.score = 26 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.54 | |
@tag.score = 24 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.49 | |
@tag.score = 22 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.44 | |
@tag.score = 20 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.39 | |
@tag.score = 18 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.34 | |
@tag.score = 16 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.29 | |
@tag.score = 14 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.24 | |
@tag.score = 12 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.19 | |
@tag.score = 10 | |
elsif | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0.14 | |
@tag.score = 8 | |
else | |
@sentiment["mood"] == negative && @sentiment["prob"] > 0 | |
@tag.score = 3 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the wrost code I have ever seen