KojoKesse commited on
Commit
f2dad69
·
1 Parent(s): d183a1f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -0
README.md CHANGED
@@ -11,3 +11,45 @@ license: mit
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
14
+
15
+
16
+
17
+ ---
18
+
19
+ # Sentiment Analysis for Covid Feelings using Transformers and Streamlit
20
+
21
+ This Python script performs sentiment analysis using pre-trained transformer models from the `transformers` library and integrates it into a Streamlit app to analyze sentiments related to Covid feelings.
22
+
23
+ ## Installation
24
+
25
+ ### Requirements
26
+ - Python 3.x
27
+ - Required libraries: `transformers`, `datasets`, `streamlit`
28
+
29
+ Install necessary libraries by running:
30
+
31
+ ```bash
32
+ pip install -q transformers datasets streamlit
33
+ ```
34
+
35
+ ## Usage
36
+
37
+ 1. Clone or download the script.
38
+ 2. Ensure Python and required libraries are installed.
39
+ 3. Run the script in a Python environment.
40
+
41
+ The script showcases sentiment analysis using a pre-trained model (`avichr/heBERT_sentiment_analysis`) to classify the sentiment of input text into `Negative`, `Neutral`, or `Positive` categories related to Covid feelings.
42
+
43
+ ### Steps:
44
+ 1. Preprocesses the input text by handling placeholders for usernames and links.
45
+ 2. Utilizes a pre-trained model (`bert-base-cased`) and the specified sentiment analysis model (`avichr/heBERT_sentiment_analysis`).
46
+ 3. Calculates sentiment scores using softmax probabilities for each sentiment category.
47
+ 4. Displays sentiment scores in a Streamlit app based on user input.
48
+
49
+ ## Additional Information
50
+
51
+ - The script offers sentiment analysis functionality for Covid-related text input via a Streamlit interface.
52
+ - Ensure access to the specified model (`avichr/heBERT_sentiment_analysis`) before running the script.
53
+ - Users can interact with the Streamlit app by entering text related to Covid feelings to receive sentiment scores for Negative, Neutral, and Positive categories.
54
+
55
+