Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
from gensim.models import Word2Vec
|
| 3 |
|
| 4 |
# Apply custom styles using Streamlit's markdown
|
| 5 |
st.markdown("""
|
|
@@ -19,8 +18,10 @@ st.markdown('<p class="section-title">What is NLP?</p>', unsafe_allow_html=True)
|
|
| 19 |
st.markdown("""
|
| 20 |
Natural Language Processing (NLP) is a subfield of artificial intelligence that enables computers to process, understand, and generate human language.
|
| 21 |
""")
|
|
|
|
|
|
|
|
|
|
| 22 |
st.markdown("""
|
| 23 |
-
**Applications of NLP:**
|
| 24 |
- ✅ Chatbots & Virtual Assistants (e.g., Siri, Alexa)
|
| 25 |
- ✅ Sentiment Analysis (e.g., Product reviews, Social Media monitoring)
|
| 26 |
- ✅ Machine Translation (e.g., Google Translate)
|
|
@@ -130,7 +131,8 @@ elif selected_method == "Word Embeddings (Word2Vec)":
|
|
| 130 |
- ❌ Computationally expensive
|
| 131 |
""")
|
| 132 |
|
| 133 |
-
# Sample texts
|
|
|
|
| 134 |
texts = [
|
| 135 |
"Natural Language Processing is fascinating.",
|
| 136 |
"Natural Language Processing involves understanding human language.",
|
|
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
|
| 3 |
# Apply custom styles using Streamlit's markdown
|
| 4 |
st.markdown("""
|
|
|
|
| 18 |
st.markdown("""
|
| 19 |
Natural Language Processing (NLP) is a subfield of artificial intelligence that enables computers to process, understand, and generate human language.
|
| 20 |
""")
|
| 21 |
+
|
| 22 |
+
# Section: Applications of NLP
|
| 23 |
+
st.markdown('<p class="sub-title">Applications of NLP:</p>', unsafe_allow_html=True)
|
| 24 |
st.markdown("""
|
|
|
|
| 25 |
- ✅ Chatbots & Virtual Assistants (e.g., Siri, Alexa)
|
| 26 |
- ✅ Sentiment Analysis (e.g., Product reviews, Social Media monitoring)
|
| 27 |
- ✅ Machine Translation (e.g., Google Translate)
|
|
|
|
| 131 |
- ❌ Computationally expensive
|
| 132 |
""")
|
| 133 |
|
| 134 |
+
# Sample texts for Word2Vec model
|
| 135 |
+
from gensim.models import Word2Vec
|
| 136 |
texts = [
|
| 137 |
"Natural Language Processing is fascinating.",
|
| 138 |
"Natural Language Processing involves understanding human language.",
|