Spaces:
Sleeping
Sleeping
Update test.py
Browse files
test.py
CHANGED
@@ -17,6 +17,7 @@ st.write('''### Group: Jason Wu''')
|
|
17 |
url = "https://www.kaggle.com/datasets/rahulgoel1106/xenophobia-on-twitter-during-covid19"
|
18 |
url2 = "https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest"
|
19 |
url3 = "https://vega.github.io/vega/docs/transforms/wordcloud/"
|
|
|
20 |
st.write("Dataset Link to Download -> [Kaggle Covid-19 Xenophobic Datatset](%s)" % url)
|
21 |
st.write("Trained Sentiment Analyzer -> [Huggicardiffnlp / twitter-roberta-base-sentiment-latest](%s)" % url2)
|
22 |
|
@@ -41,6 +42,7 @@ For the next part and the visual you're seeing now, it is called a word cloud wh
|
|
41 |
the bigger the word becomes in the visual. To help you understand the word cloud better, I added different colors for each sentiments when you select them. Also I add small texts for the interactions to help you understand what they mean. Additionally, included are different sources for inspiration for this visual. So feel free to
|
42 |
check them out if you want to learn more about word clouds. '''
|
43 |
st.markdown(multi)
|
|
|
44 |
# Load sentiment scores and cleaned text data
|
45 |
data = pd.read_csv('sentiment_scores.csv')
|
46 |
df = pd.read_csv('Xenophobia.csv', encoding='latin1', nrows=5000)
|
|
|
17 |
url = "https://www.kaggle.com/datasets/rahulgoel1106/xenophobia-on-twitter-during-covid19"
|
18 |
url2 = "https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest"
|
19 |
url3 = "https://vega.github.io/vega/docs/transforms/wordcloud/"
|
20 |
+
url4 = "https://huggingface.co/spaces/jwu249/is445_final"
|
21 |
st.write("Dataset Link to Download -> [Kaggle Covid-19 Xenophobic Datatset](%s)" % url)
|
22 |
st.write("Trained Sentiment Analyzer -> [Huggicardiffnlp / twitter-roberta-base-sentiment-latest](%s)" % url2)
|
23 |
|
|
|
42 |
the bigger the word becomes in the visual. To help you understand the word cloud better, I added different colors for each sentiments when you select them. Also I add small texts for the interactions to help you understand what they mean. Additionally, included are different sources for inspiration for this visual. So feel free to
|
43 |
check them out if you want to learn more about word clouds. '''
|
44 |
st.markdown(multi)
|
45 |
+
st.write("Expert Visualization: (%s)" % url)
|
46 |
# Load sentiment scores and cleaned text data
|
47 |
data = pd.read_csv('sentiment_scores.csv')
|
48 |
df = pd.read_csv('Xenophobia.csv', encoding='latin1', nrows=5000)
|