mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-06-27 16:10:34 +08:00
updated README to reflect changes to political api
This commit is contained in:
+2
-1
@@ -6,4 +6,5 @@ v0.3.1, Mon Jul 21 -- Added __version__ to module
|
||||
v0.3.2, Tue Jul 22 -- Removed spam detection due to instability
|
||||
v0.3.3, Fri Aug 1 -- Added language detection api
|
||||
v0.4.0, Fri Aug 1 -- Changed api import to lowercase, added language example
|
||||
v0.4.1, Fri Aug 1 -- Updated __version__ variable to be accurate
|
||||
v0.4.1, Fri Aug 1 -- Updated __version__ variable to be accurate
|
||||
v0.4.2, Wed Aug 6 -- Updated README to accurately reflect political analysis results
|
||||
|
||||
@@ -28,7 +28,7 @@ Examples
|
||||
>>> from indicoio import political, sentiment, fer, facial_features, language
|
||||
|
||||
>>> political("Guns don't kill people. People kill people.")
|
||||
{u'Libertarian': 0.22934946808893228, u'Liberal': 0.2025395008382684, u'Green': 0.0, u'Conservative': 1.0}
|
||||
{u'Libertarian': 0.47740164630834825, u'Green': 0.08454409540443657, u'Liberal': 0.16617097211030055, u'Conservative': 0.2718832861769146}
|
||||
|
||||
>>> sentiment('Worst movie ever.')
|
||||
{u'Sentiment': 0.07062467665597527}
|
||||
|
||||
@@ -28,7 +28,7 @@ Examples
|
||||
>>> from indicoio import political, sentiment, fer, facial_features, language
|
||||
|
||||
>>> political("Guns don't kill people. People kill people.")
|
||||
{u'Libertarian': 0.22934946808893228, u'Liberal': 0.2025395008382684, u'Green': 0.0, u'Conservative': 1.0}
|
||||
{u'Libertarian': 0.47740164630834825, u'Green': 0.08454409540443657, u'Liberal': 0.16617097211030055, u'Conservative': 0.2718832861769146}
|
||||
|
||||
>>> sentiment('Worst movie ever.')
|
||||
{u'Sentiment': 0.07062467665597527}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
JSON_HEADERS = {'Content-type': 'application/json', 'Accept': 'text/plain'}
|
||||
|
||||
Version, version, __version__, VERSION = ('0.4.1',) * 4
|
||||
Version, version, __version__, VERSION = ('0.4.2',) * 4
|
||||
|
||||
from text.sentiment import political, posneg
|
||||
from text.sentiment import posneg as sentiment
|
||||
|
||||
Reference in New Issue
Block a user