diff --git a/couchDB/process.py b/couchDB/process.py index 85ff091939102286b9dbef972af8a8f110e0c2bc..e9ea86dfc056d8a4b9a0bae4b52fcc667b8dec26 100644 --- a/couchDB/process.py +++ b/couchDB/process.py @@ -27,7 +27,7 @@ with io.open(file1,'r',encoding="utf-8") as f: tweet = json.loads(line)['text'] my_dict['polarity']=TextBlob(tweet).sentiment.polarity my_dict['lang'] = json.loads(line)['lang'] - json.dump(my_dict,output_file,indent=4) + output_file.write(json.dumps(my_dict)+',\n') except: pass