From 2b797c0cfe5c1ee3f64e802ea76a998c097d534e Mon Sep 17 00:00:00 2001 From: Mukund Hadoop Date: Sun, 18 Nov 2018 22:58:14 +0530 Subject: [PATCH] SentimentAnalysis --- sentiment_analysis/W2VSentimentAnalysis.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sentiment_analysis/W2VSentimentAnalysis.py b/sentiment_analysis/W2VSentimentAnalysis.py index e80c5d2..ced1c35 100644 --- a/sentiment_analysis/W2VSentimentAnalysis.py +++ b/sentiment_analysis/W2VSentimentAnalysis.py @@ -264,8 +264,14 @@ def makeFeatureVectors(words, model, num_features): return featureVec + + + #

Function to create word vectors from a set of reviews

+ + + # In[29]: @@ -295,8 +301,14 @@ def getAvgFeatureVecs(reviews, model, num_features): return reviewFeatureVecs + + + #

Building Word2Vector Model for Word Embeddings

+ + + # In[23]: