|
18 | 18 | { |
19 | 19 | "data": { |
20 | 20 | "text/plain": [ |
21 | | - "{'compound': 0.0, 'neg': 0.0, 'neu': 1.0, 'pos': 0.0}" |
| 21 | + "{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}" |
22 | 22 | ] |
23 | 23 | }, |
24 | 24 | "execution_count": 2, |
|
38 | 38 | { |
39 | 39 | "data": { |
40 | 40 | "text/plain": [ |
41 | | - "{'compound': -0.128, 'neg': 0.289, 'neu': 0.398, 'pos': 0.313}" |
| 41 | + "{'neg': 0.262, 'neu': 0.452, 'pos': 0.285, 'compound': -0.128}" |
42 | 42 | ] |
43 | 43 | }, |
44 | 44 | "execution_count": 3, |
|
52 | 52 | }, |
53 | 53 | { |
54 | 54 | "cell_type": "code", |
55 | | - "execution_count": 8, |
| 55 | + "execution_count": 4, |
56 | 56 | "metadata": {}, |
57 | 57 | "outputs": [ |
58 | 58 | { |
59 | 59 | "data": { |
60 | 60 | "text/plain": [ |
61 | | - "{'compound': 0.4404, 'neg': 0.0, 'neu': 0.408, 'pos': 0.592}" |
| 61 | + "{'neg': 0.0, 'neu': 0.408, 'pos': 0.592, 'compound': 0.4404}" |
62 | 62 | ] |
63 | 63 | }, |
64 | | - "execution_count": 8, |
| 64 | + "execution_count": 4, |
65 | 65 | "metadata": {}, |
66 | 66 | "output_type": "execute_result" |
67 | 67 | } |
|
72 | 72 | }, |
73 | 73 | { |
74 | 74 | "cell_type": "code", |
75 | | - "execution_count": 9, |
| 75 | + "execution_count": 5, |
76 | 76 | "metadata": {}, |
77 | 77 | "outputs": [ |
78 | 78 | { |
79 | 79 | "data": { |
80 | 80 | "text/plain": [ |
81 | | - "{'compound': 0.6124, 'neg': 0.0, 'neu': 0.5, 'pos': 0.5}" |
| 81 | + "{'neg': 0.0, 'neu': 0.5, 'pos': 0.5, 'compound': 0.6124}" |
82 | 82 | ] |
83 | 83 | }, |
84 | | - "execution_count": 9, |
| 84 | + "execution_count": 5, |
85 | 85 | "metadata": {}, |
86 | 86 | "output_type": "execute_result" |
87 | 87 | } |
|
92 | 92 | }, |
93 | 93 | { |
94 | 94 | "cell_type": "code", |
95 | | - "execution_count": 10, |
| 95 | + "execution_count": 6, |
96 | 96 | "metadata": {}, |
97 | 97 | "outputs": [ |
98 | 98 | { |
99 | 99 | "data": { |
100 | 100 | "text/plain": [ |
101 | | - "{'compound': 0.4588, 'neg': 0.0, 'neu': 0.25, 'pos': 0.75}" |
| 101 | + "{'neg': 0.0, 'neu': 0.4, 'pos': 0.6, 'compound': 0.4588}" |
102 | 102 | ] |
103 | 103 | }, |
104 | | - "execution_count": 10, |
| 104 | + "execution_count": 6, |
105 | 105 | "metadata": {}, |
106 | 106 | "output_type": "execute_result" |
107 | 107 | } |
|
112 | 112 | }, |
113 | 113 | { |
114 | 114 | "cell_type": "code", |
115 | | - "execution_count": 12, |
| 115 | + "execution_count": 7, |
116 | 116 | "metadata": {}, |
117 | 117 | "outputs": [ |
118 | 118 | { |
119 | 119 | "data": { |
120 | 120 | "text/plain": [ |
121 | | - "{'compound': 0.0, 'neg': 0.0, 'neu': 1.0, 'pos': 0.0}" |
| 121 | + "{'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}" |
122 | 122 | ] |
123 | 123 | }, |
124 | | - "execution_count": 12, |
| 124 | + "execution_count": 7, |
125 | 125 | "metadata": {}, |
126 | 126 | "output_type": "execute_result" |
127 | 127 | } |
128 | 128 | ], |
129 | 129 | "source": [ |
130 | 130 | "analyzer.polarity_scores('I ran.')" |
131 | 131 | ] |
132 | | - }, |
133 | | - { |
134 | | - "cell_type": "code", |
135 | | - "execution_count": null, |
136 | | - "metadata": { |
137 | | - "collapsed": true |
138 | | - }, |
139 | | - "outputs": [], |
140 | | - "source": [] |
141 | 132 | } |
142 | 133 | ], |
143 | 134 | "metadata": { |
144 | 135 | "kernelspec": { |
145 | | - "display_name": "Python 2", |
| 136 | + "display_name": "Python 3 (ipykernel)", |
146 | 137 | "language": "python", |
147 | | - "name": "python2" |
| 138 | + "name": "python3" |
148 | 139 | }, |
149 | 140 | "language_info": { |
150 | 141 | "codemirror_mode": { |
151 | 142 | "name": "ipython", |
152 | | - "version": 2 |
| 143 | + "version": 3 |
153 | 144 | }, |
154 | 145 | "file_extension": ".py", |
155 | 146 | "mimetype": "text/x-python", |
156 | 147 | "name": "python", |
157 | 148 | "nbconvert_exporter": "python", |
158 | | - "pygments_lexer": "ipython2", |
159 | | - "version": "2.7.12" |
| 149 | + "pygments_lexer": "ipython3", |
| 150 | + "version": "3.8.10" |
160 | 151 | } |
161 | 152 | }, |
162 | 153 | "nbformat": 4, |
163 | | - "nbformat_minor": 2 |
| 154 | + "nbformat_minor": 4 |
164 | 155 | } |
0 commit comments