Spaces:
Sleeping
Sleeping
Update app.py
#2
by
Mpavan45
- opened
app.py
CHANGED
|
@@ -307,7 +307,7 @@ elif selected_page == "π Lifecycle of NLP":
|
|
| 307 |
elif selected_page == "βοΈ NLP Techniques":
|
| 308 |
st.header("βοΈ NLP Techniques")
|
| 309 |
if selected_subpoint:
|
| 310 |
-
if selected_subpoint == "Tokenization":
|
| 311 |
st.write("""
|
| 312 |
Breaking down text into smaller units such as words or sentences to make it manageable for analysis.
|
| 313 |
**Example:**
|
|
@@ -315,7 +315,7 @@ elif selected_page == "βοΈ NLP Techniques":
|
|
| 315 |
- Word Tokens: `["Artificial", "Intelligence", "is", "fascinating", "."]`
|
| 316 |
- Sentence Tokens: `["Artificial Intelligence is fascinating."]`
|
| 317 |
""")
|
| 318 |
-
elif selected_subpoint == "Stemming":
|
| 319 |
st.write("### π± Stemming")
|
| 320 |
st.write("""
|
| 321 |
Stemming reduces words to their root form by removing prefixes or suffixes, often resulting in a non-grammatical base.
|
|
@@ -530,7 +530,7 @@ elif selected_page == "βοΈ NLP Techniques":
|
|
| 530 |
```
|
| 531 |
""")
|
| 532 |
|
| 533 |
-
elif selected_subpoint == "Part-of-Speech (POS) Tagging":
|
| 534 |
st.write("### ποΈ Part-of-Speech (POS) Tagging")
|
| 535 |
st.write("""
|
| 536 |
Assigning grammatical labels to each word in a sentence, indicating its role in context.
|
|
@@ -539,7 +539,7 @@ elif selected_page == "βοΈ NLP Techniques":
|
|
| 539 |
- Output: `["Birds (NOUN)", "fly (VERB)", "high (ADJ)"]`
|
| 540 |
""")
|
| 541 |
|
| 542 |
-
elif selected_subpoint == "Named Entity Recognition (NER)":
|
| 543 |
st.write("### π Named Entity Recognition (NER)")
|
| 544 |
st.write("""
|
| 545 |
Detecting and categorizing entities like names, dates, and locations from text.
|
|
@@ -548,7 +548,7 @@ elif selected_page == "βοΈ NLP Techniques":
|
|
| 548 |
- Output: `["Tesla (ORGANIZATION)", "Elon Musk (PERSON)", "California (LOCATION)"]`
|
| 549 |
""")
|
| 550 |
|
| 551 |
-
elif selected_subpoint == "Sentiment Analysis":
|
| 552 |
st.write("### π Sentiment Analysis")
|
| 553 |
st.write("""
|
| 554 |
Classifying the emotional tone of a text into categories such as positive, negative, or neutral.
|
|
|
|
| 307 |
elif selected_page == "βοΈ NLP Techniques":
|
| 308 |
st.header("βοΈ NLP Techniques")
|
| 309 |
if selected_subpoint:
|
| 310 |
+
if selected_subpoint == " Tokenization":
|
| 311 |
st.write("""
|
| 312 |
Breaking down text into smaller units such as words or sentences to make it manageable for analysis.
|
| 313 |
**Example:**
|
|
|
|
| 315 |
- Word Tokens: `["Artificial", "Intelligence", "is", "fascinating", "."]`
|
| 316 |
- Sentence Tokens: `["Artificial Intelligence is fascinating."]`
|
| 317 |
""")
|
| 318 |
+
elif selected_subpoint == " Stemming":
|
| 319 |
st.write("### π± Stemming")
|
| 320 |
st.write("""
|
| 321 |
Stemming reduces words to their root form by removing prefixes or suffixes, often resulting in a non-grammatical base.
|
|
|
|
| 530 |
```
|
| 531 |
""")
|
| 532 |
|
| 533 |
+
elif selected_subpoint == " Part-of-Speech (POS) Tagging":
|
| 534 |
st.write("### ποΈ Part-of-Speech (POS) Tagging")
|
| 535 |
st.write("""
|
| 536 |
Assigning grammatical labels to each word in a sentence, indicating its role in context.
|
|
|
|
| 539 |
- Output: `["Birds (NOUN)", "fly (VERB)", "high (ADJ)"]`
|
| 540 |
""")
|
| 541 |
|
| 542 |
+
elif selected_subpoint == " Named Entity Recognition (NER)":
|
| 543 |
st.write("### π Named Entity Recognition (NER)")
|
| 544 |
st.write("""
|
| 545 |
Detecting and categorizing entities like names, dates, and locations from text.
|
|
|
|
| 548 |
- Output: `["Tesla (ORGANIZATION)", "Elon Musk (PERSON)", "California (LOCATION)"]`
|
| 549 |
""")
|
| 550 |
|
| 551 |
+
elif selected_subpoint == " Sentiment Analysis":
|
| 552 |
st.write("### π Sentiment Analysis")
|
| 553 |
st.write("""
|
| 554 |
Classifying the emotional tone of a text into categories such as positive, negative, or neutral.
|