vibha-mah commited on
Commit
d5502eb
·
1 Parent(s): 53df561

Update NLP_sentiment_model

Browse files
Files changed (1) hide show
  1. NLP_sentiment_model +0 -5
NLP_sentiment_model CHANGED
@@ -32,11 +32,6 @@ dataset = dataset[['sentiment','text']]
32
  # Replacing the values to ease understanding.
33
  dataset['sentiment'] = dataset['sentiment'].replace(4,1)
34
 
35
- # Plotting the distribution for dataset.
36
- ax = dataset.groupby('sentiment').count().plot(kind='bar', title='Distribution of data',
37
- legend=False)
38
- ax.set_xticklabels(['Negative','Positive'], rotation=0)
39
-
40
  # Storing data in lists.
41
  text, sentiment = list(dataset['text']), list(dataset['sentiment'])
42
 
 
32
  # Replacing the values to ease understanding.
33
  dataset['sentiment'] = dataset['sentiment'].replace(4,1)
34
 
 
 
 
 
 
35
  # Storing data in lists.
36
  text, sentiment = list(dataset['text']), list(dataset['sentiment'])
37