Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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