Skip to content

Commit

Permalink
SentimentAnalysis
Browse files Browse the repository at this point in the history
  • Loading branch information
mukundsood1996 committed Nov 18, 2018
1 parent e333100 commit 0ba3e8e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions sentiment_analysis/W2VSentimentAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,13 @@ def getAvgFeatureVecs(reviews, model, num_features):
v2wmodel.save("SentimentAnalysis_Word2VecModel")




# <h3> Embedding Train and Test Vectors </h3>




# In[30]:


Expand All @@ -336,16 +341,28 @@ def getAvgFeatureVecs(reviews, model, num_features):
reviewTestVectors = getAvgFeatureVecs(testing_review_data, v2wmodel, vector_dimensions)





# <h3> Training labels </h3>




# In[31]:


target = [1 if i < 12500 else 0 for i in range(25000)]





# <h2> Neural Network </h2>




# <h3> Building the Neural Network Model </h3>

# In[45]:
Expand Down

0 comments on commit 0ba3e8e

Please sign in to comment.