I am trying to count the number of times a word exists in a dict column based on a subset of interested words.
First I import my data
products = graphlab.SFrame('amazon_baby.gl/')
products['word_count'] = graphlab.text_analytics.count_words(products['review'])
products.head(5)
Data can be found here: https://drive.google.com/open?id=0BzbhZp-qIglxM3VSVWRsVFRhTWc
I then create list of words i am interested in:
words = ['awesome', 'great', 'fantastic']
I would like to count the number of times each word in "words" occurs in the products['word_count'].
I am not married to using graphlab. It was just suggested to me by a colleague.