Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from annotator import ignitor_load,appendor,allll
|
|
10 |
|
11 |
if __name__ == '__main__':
|
12 |
st.header("Which sentiment does this text convey? Is it related to work?")
|
13 |
-
st.write("This app tells whether a text can be labeled as related to pecuniary, colleagues, boss, general aspects of work, or neither of them. It also shows the sentiment of text across 27 different affects + neutral. The goal of this app is to be served as a proof of concept and cross-validator ( data validator ) of the tweets classified by the full-fledged model. The purpose of this model is to recognize tweets which are related to work from within large corpora of data, to see how their sentiment differs from the rest of the tweets. The FN of the model is high to prevent labeling tweets that are not related to work, as long as the sentiment of labeled tweets is not systematically different than the FN tweets, the goal of this model is met. To mitigate the risk of systematic wrong-classification, in the work-classification phase, none of the keywords conveys a sentiment.")
|
14 |
st.write("You should expect that around 4 percent of all the tweets containing potentially work-related words, to be classified as work-related by this app.")
|
15 |
st.write("This model is powered by Joe Davison GoEmotions-based model and HuggingFace for the sentiment-labeling phase and for the work-labeling phase it is powered by HuggingFace, DistilBERT, Streamlit and, the Active Label Selection (ALS) method developed by Sepehr Cyrusian as a part of the article co-written by professor Colin P. Green")
|
16 |
|
@@ -72,7 +72,7 @@ if __name__ == '__main__':
|
|
72 |
st.write('This tweet **is related to work** and it might be related to the time dimension or general aspect of work.')
|
73 |
|
74 |
elif allll(dade)=='None':
|
75 |
-
st.write('The model could not find this tweet related to work.')
|
76 |
|
77 |
st.warning('Compared to the original model, this small online demo is slower and has a higher false-negative rate. Therefore this open-source online demo can be used as a **cross-checker for the tweets already tagged by the main model, hence showing its ability to solve the problem of working with big data**. The main model yields a better confusion matrix in recognizing work-related texts task and is more than 20 times faster. Due to the randomness of the model, in sporadic cases, the same text might be labeled differently in the second submission, which should- believing in statistics!- be corrected in the third one.')
|
78 |
st.info('Please cite the respective paper written by Sepehr Cyrusian and professor Colin P. Green if you use the files of this demo in whole or in part.')
|
|
|
10 |
|
11 |
if __name__ == '__main__':
|
12 |
st.header("Which sentiment does this text convey? Is it related to work?")
|
13 |
+
st.write("This app tells whether a text can be labeled as related to pecuniary, colleagues, boss, temporal/general aspects of work, or neither of them. It also shows the sentiment of text across 27 different affects + neutral. The goal of this app is to be served as a proof of concept and cross-validator ( data validator ) of the tweets classified by the full-fledged model. The purpose of this model is to recognize tweets which are related to work from within large corpora of data, to see how their sentiment differs from the rest of the tweets. The FN of the model is high to prevent labeling tweets that are not related to work, as long as the sentiment of labeled tweets is not systematically different than the FN tweets, the goal of this model is met. To mitigate the risk of systematic wrong-classification, in the work-classification phase, none of the keywords conveys a sentiment.")
|
14 |
st.write("You should expect that around 4 percent of all the tweets containing potentially work-related words, to be classified as work-related by this app.")
|
15 |
st.write("This model is powered by Joe Davison GoEmotions-based model and HuggingFace for the sentiment-labeling phase and for the work-labeling phase it is powered by HuggingFace, DistilBERT, Streamlit and, the Active Label Selection (ALS) method developed by Sepehr Cyrusian as a part of the article co-written by professor Colin P. Green")
|
16 |
|
|
|
72 |
st.write('This tweet **is related to work** and it might be related to the time dimension or general aspect of work.')
|
73 |
|
74 |
elif allll(dade)=='None':
|
75 |
+
st.write('The model could not find this tweet to be related to work.')
|
76 |
|
77 |
st.warning('Compared to the original model, this small online demo is slower and has a higher false-negative rate. Therefore this open-source online demo can be used as a **cross-checker for the tweets already tagged by the main model, hence showing its ability to solve the problem of working with big data**. The main model yields a better confusion matrix in recognizing work-related texts task and is more than 20 times faster. Due to the randomness of the model, in sporadic cases, the same text might be labeled differently in the second submission, which should- believing in statistics!- be corrected in the third one.')
|
78 |
st.info('Please cite the respective paper written by Sepehr Cyrusian and professor Colin P. Green if you use the files of this demo in whole or in part.')
|