diff --git a/sentiment.py b/sentiment.py index c4ae7b141ec890549225dfcdc3fbc5a9d6e1d1f9..89f688013a55abc22cf11cea7c53f5712879dd23 100644 --- a/sentiment.py +++ b/sentiment.py @@ -186,9 +186,6 @@ def word_sorting(review,file_name): number += 1 - - - with open('positive.txt','w') as file: positives = '\n'.join(positive) file.write(positives) @@ -200,9 +197,5 @@ def word_sorting(review,file_name): return positive,negative - - - - if __name__ == '__main__': main()