Skip to content

Instantly share code, notes, and snippets.

@mfmakahiya
Created November 14, 2018 05:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfmakahiya/32049bcd31d4df8b4140823944df2f39 to your computer and use it in GitHub Desktop.
Save mfmakahiya/32049bcd31d4df8b4140823944df2f39 to your computer and use it in GitHub Desktop.
# 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