Update app.py
Browse files
app.py
CHANGED
@@ -12,9 +12,9 @@ Original file is located at
|
|
12 |
|
13 |
import streamlit
|
14 |
|
15 |
-
pip install pygal
|
16 |
|
17 |
-
pip install squarify
|
18 |
|
19 |
# Commented out IPython magic to ensure Python compatibility.
|
20 |
import numpy as np
|
@@ -449,9 +449,9 @@ layout = go.Layout(
|
|
449 |
|
450 |
go.Figure(data=data, layout=layout)
|
451 |
|
452 |
-
pip install scattertext
|
453 |
|
454 |
-
pip install spacy
|
455 |
|
456 |
import scattertext as st
|
457 |
import spacy
|
@@ -550,7 +550,7 @@ df['sentiment'].value_counts()
|
|
550 |
from sklearn.model_selection import train_test_split
|
551 |
train,eva = train_test_split(df,test_size = 0.2)
|
552 |
|
553 |
-
pip install simpletransformers
|
554 |
|
555 |
from simpletransformers.classification import ClassificationModel
|
556 |
|
@@ -656,7 +656,7 @@ get_result("The stock market of Indian economy is dangling too much")
|
|
656 |
|
657 |
"""#VADER"""
|
658 |
|
659 |
-
pip install vaderSentiment
|
660 |
|
661 |
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
|
662 |
|
|
|
12 |
|
13 |
import streamlit
|
14 |
|
15 |
+
#pip install pygal
|
16 |
|
17 |
+
#pip install squarify
|
18 |
|
19 |
# Commented out IPython magic to ensure Python compatibility.
|
20 |
import numpy as np
|
|
|
449 |
|
450 |
go.Figure(data=data, layout=layout)
|
451 |
|
452 |
+
#pip install scattertext
|
453 |
|
454 |
+
#pip install spacy
|
455 |
|
456 |
import scattertext as st
|
457 |
import spacy
|
|
|
550 |
from sklearn.model_selection import train_test_split
|
551 |
train,eva = train_test_split(df,test_size = 0.2)
|
552 |
|
553 |
+
#pip install simpletransformers
|
554 |
|
555 |
from simpletransformers.classification import ClassificationModel
|
556 |
|
|
|
656 |
|
657 |
"""#VADER"""
|
658 |
|
659 |
+
#pip install vaderSentiment
|
660 |
|
661 |
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
|
662 |
|