Created
November 14, 2018 05:23
-
-
Save mfmakahiya/32049bcd31d4df8b4140823944df2f39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load libraries | |
import os | |
import logging | |
from empath import Empath | |
import pandas as pd | |
# Set up folder locations | |
source_folder_path_list = [] | |
source_folder_path = "C:/Users/Marriane/Documents/GitHub/empath-on-movie-reviews/data/scale_whole_review.tar (with text)/scale_whole_review/scale_whole_review/" | |
folder_list = ["Dennis+Schwartz/txt.parag", "James+Berardinelli/txt.parag", "Scott+Renshaw/txt.parag", "Steve+Rhodes/txt.parag"] | |
for folder in folder_list: | |
folder_loc = source_folder_path + folder | |
source_folder_path_list.append(folder_loc) | |
print(source_folder_path_list) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment