Correct identation error in sample.
@@ -2,7 +2,7 @@ import sys
import json
from textblob import TextBlob
-# set default encoding to UTF-8 to eliminate decoding errors
+# Set encoding to UTF-8 (vs ASCII to eliminate potential errors).
reload(sys)
sys.setdefaultencoding('utf8')
@@ -29,4 +29,5 @@ if(__name__ == "__main__"):
res["sentence_count"] = total
res["polarity"] = res["polarity"] / total
res["subjectivity"] = res["subjectivity"] / total
+
print(json.dumps(res))
