sumit-ai-ml commited on
Commit
f20b8df
1 Parent(s): e0722d9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -1
README.md CHANGED
@@ -10,4 +10,24 @@ pinned: false
10
  license: mit
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  license: mit
11
  ---
12
 
13
+ This Gradio app enables users to generate sentiment-based word clouds from text data in Excel files. It visually represents positive and negative sentiments using color-coded words, providing an intuitive analysis of textual data. Here's a brief guide on how to use it:
14
+
15
+ ### How to Use
16
+ 1. **Upload Excel File:** Click the "Upload Excel File" button to select and upload your Excel file. The file should contain textual data you wish to analyze.
17
+ 2. **Enter Column Name:** Input the name of the column from your Excel file that contains the text data. This tells the app which column to use for generating the word cloud.
18
+ 3. **Generate Word Cloud:** After uploading the file and specifying the column name, submit the form. The app will process the text data, identifying positive and negative words to generate a word cloud. Positive words are displayed in green, negative words in red, and neutral or unspecified words in gray.
19
+ 4. **View Results:** The generated word cloud will be displayed as the output. This visual representation helps you quickly grasp the overall sentiment of the text data.
20
+
21
+ ### Technical Details
22
+ - The app uses the `opinion_lexicon` from NLTK to distinguish between positive and negative words.
23
+ - A custom color function, `SimpleGroupedColorFunc`, assigns specific colors to words based on their sentiment.
24
+ - The `wordcloud` library generates the visual representation, which is then recolored according to the sentiment analysis.
25
+ - Gradio's interface (`gr.Interface`) creates a simple web app for interacting with the Python function, allowing for easy file upload and parameter input.
26
+
27
+ ### Notes
28
+ - Make sure the column name you enter matches exactly with one in the Excel file, including case sensitivity.
29
+ - The word cloud provides a snapshot of the sentiment but does not convey the context or the intensity of sentiments.
30
+
31
+ This tool is particularly useful for quickly analyzing customer feedback, reviews, or any textual data where understanding sentiment is valuable.
32
+
33
+