diff --git a/.idea/Dissertation_Project.iml b/.idea/Dissertation_Project.iml new file mode 100644 index 0000000..d0876a7 --- /dev/null +++ b/.idea/Dissertation_Project.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..db8786c --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..8301634 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml index d843f34..35eb1dd 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -1,4 +1,6 @@ - + + + \ No newline at end of file diff --git a/Sentiment Analysis and Classification.py b/Sentiment Analysis and Classification.py index 473df42..e646f7f 100644 --- a/Sentiment Analysis and Classification.py +++ b/Sentiment Analysis and Classification.py @@ -32,11 +32,11 @@ # Import data all_text = pd.read_csv('...') -############ +############## ######################## # Sentiment Analysis ######################## -############ +############## # first untokenize text so it can be used easily for sentiment analysis all_text['untokenized'] = all_text['tokens'].apply(lambda tokens: ''.join(tokens).replace("', '", ' ').replace("['", '').replace("']", '')) @@ -45,7 +45,7 @@ # Set sentminet analizer analyzer = SentimentIntensityAnalyzer() -# get scores for each piece of text and append to list +## get scores for each piece of text and append to list compounds = [] neg = [] pos = [] diff --git a/~$ssertation_Final.docx b/~$ssertation_Final.docx deleted file mode 100644 index a44602d..0000000 Binary files a/~$ssertation_Final.docx and /dev/null differ