Skip to content

Instantly share code, notes, and snippets.

@rrmehdi
rrmehdi / get_aspects.py
Created August 30, 2018 23:39 — forked from Gunnvant/get_aspects.py
Get aspects from a text
import spacy
import pandas as pd
import os
DATA_DIR="path to data"
"""Create a list of common words to remove"""
stop_words=["i", "me", "my", "myself", "we", "our", "ours", "ourselves", "you", "your", "yours", "yourself",
"yourselves", "he", "him", "his", "himself", "she", "her", "hers", "herself", "it", "its", "itself",
"they", "them", "their", "theirs", "themselves", "what", "which", "who", "whom", "this", "that", "these",
"those", "am", "is", "are", "was", "were", "be", "been", "being", "have", "has", "had", "having", "do",