Update pages/Introduction.py
Browse files- pages/Introduction.py +6 -6
pages/Introduction.py
CHANGED
|
@@ -13,7 +13,7 @@ st.markdown("<p>NLP powers many applications that use language, such as text tra
|
|
| 13 |
st.subheader("NLP Techniques")
|
| 14 |
st.markdown("<p>NLP encompasses a wide array of techniques that aimed at enabling computers to process and understand human language. These tasks can be categorized into several broad areas, each addressing different aspects of language processing. Here are some of the key NLP techniques:</p>",unsafe_allow_html= True)
|
| 15 |
|
| 16 |
-
st.markdown('<p style="color:
|
| 17 |
st.write("Before performing any analysis or modeling, raw text data must be cleaned and prepared.")
|
| 18 |
st.markdown('<p style="color:lightcoral;"><b>a. Tokenization</b></p>', unsafe_allow_html=True)
|
| 19 |
st.write("Splits text into smaller units like words or sentences.")
|
|
@@ -25,27 +25,27 @@ st.write("Example: _'I love NLP'_ → [‘I’, ‘love’, ‘NLP’]")
|
|
| 25 |
st.write("**(ii) Sentence Tokenization:** Breaking text into sentences.")
|
| 26 |
st.write("Example: _'I love NLP. It’s fascinating!'_ → [‘I love NLP.’, ‘It’s fascinating!’]")
|
| 27 |
|
| 28 |
-
st.markdown('<p style="color:
|
| 29 |
st.write("Removes common words like “the,” “and,” “is” that do not contribute much to analysis.")
|
| 30 |
|
| 31 |
|
| 32 |
-
st.markdown('<p style="color:
|
| 33 |
st.write("Stemming: Reduces words to their base or root form by chopping off suffixes (may not produce valid words).")
|
| 34 |
st.write("Example: _“running” _ → “run”")
|
| 35 |
|
| 36 |
st.write("Lemmatization: Converts words to their base form using vocabulary and grammar")
|
| 37 |
st.write("Example: _“good” _ → “better”")
|
| 38 |
|
| 39 |
-
st.markdown('<p style="color:
|
| 40 |
st.write("Labels words with their grammatical roles (noun, verb, adjective, etc.)")
|
| 41 |
st.write("Example: _The cat sleeps”_ → [“The/DET”, “cat/NOUN”, “sleeps/VERB”]")
|
| 42 |
|
| 43 |
-
st.markdown('<p style="color:
|
| 44 |
st.write("Identifies and classifies entities in text (e.g., names, dates, locations)")
|
| 45 |
st.write("Example: _ “Barack Obama was born in Hawaii. _ ” → [Barack Obama: PERSON, Hawaii: LOCATION]")
|
| 46 |
|
| 47 |
|
| 48 |
-
st.markdown('<p style="color:
|
| 49 |
st.write("Converts text to a standard format (lowercasing, removing punctuation, etc.).")
|
| 50 |
|
| 51 |
|
|
|
|
| 13 |
st.subheader("NLP Techniques")
|
| 14 |
st.markdown("<p>NLP encompasses a wide array of techniques that aimed at enabling computers to process and understand human language. These tasks can be categorized into several broad areas, each addressing different aspects of language processing. Here are some of the key NLP techniques:</p>",unsafe_allow_html= True)
|
| 15 |
|
| 16 |
+
st.markdown('<p style="color:blue;"><b>1. Text Processing and Preprocessing In NLP</b></p>', unsafe_allow_html=True)
|
| 17 |
st.write("Before performing any analysis or modeling, raw text data must be cleaned and prepared.")
|
| 18 |
st.markdown('<p style="color:lightcoral;"><b>a. Tokenization</b></p>', unsafe_allow_html=True)
|
| 19 |
st.write("Splits text into smaller units like words or sentences.")
|
|
|
|
| 25 |
st.write("**(ii) Sentence Tokenization:** Breaking text into sentences.")
|
| 26 |
st.write("Example: _'I love NLP. It’s fascinating!'_ → [‘I love NLP.’, ‘It’s fascinating!’]")
|
| 27 |
|
| 28 |
+
st.markdown('<p style="color:lightblue;"><b>b. Stopword Removal</b></p>', unsafe_allow_html=True)
|
| 29 |
st.write("Removes common words like “the,” “and,” “is” that do not contribute much to analysis.")
|
| 30 |
|
| 31 |
|
| 32 |
+
st.markdown('<p style="color:lightblue;"><b>c. Stemming and Lemmatization</b></p>', unsafe_allow_html=True)
|
| 33 |
st.write("Stemming: Reduces words to their base or root form by chopping off suffixes (may not produce valid words).")
|
| 34 |
st.write("Example: _“running” _ → “run”")
|
| 35 |
|
| 36 |
st.write("Lemmatization: Converts words to their base form using vocabulary and grammar")
|
| 37 |
st.write("Example: _“good” _ → “better”")
|
| 38 |
|
| 39 |
+
st.markdown('<p style="color:lightblue;"><b>d. Part-of-Speech (POS) Tagging</b></p>', unsafe_allow_html=True)
|
| 40 |
st.write("Labels words with their grammatical roles (noun, verb, adjective, etc.)")
|
| 41 |
st.write("Example: _The cat sleeps”_ → [“The/DET”, “cat/NOUN”, “sleeps/VERB”]")
|
| 42 |
|
| 43 |
+
st.markdown('<p style="color:lightblue;"><b>e. Named Entity Recognition (NER)</b></p>', unsafe_allow_html=True)
|
| 44 |
st.write("Identifies and classifies entities in text (e.g., names, dates, locations)")
|
| 45 |
st.write("Example: _ “Barack Obama was born in Hawaii. _ ” → [Barack Obama: PERSON, Hawaii: LOCATION]")
|
| 46 |
|
| 47 |
|
| 48 |
+
st.markdown('<p style="color:lightblue;"><b>f. Text Normalization</b></p>', unsafe_allow_html=True)
|
| 49 |
st.write("Converts text to a standard format (lowercasing, removing punctuation, etc.).")
|
| 50 |
|
| 51 |
|