Update app.py
Browse files
app.py
CHANGED
|
@@ -56,6 +56,7 @@ if st.session_state.selected_page == 'What is NLP?':
|
|
| 56 |
# Content for NLP Lifecycle
|
| 57 |
elif st.session_state.selected_page == "NLP Lifecycle":
|
| 58 |
lifecycle_option = sidebar.radio("Select NLP Lifecycle Step:", [
|
|
|
|
| 59 |
"Data Collection",
|
| 60 |
"Text Preprocessing",
|
| 61 |
"Text Representation",
|
|
@@ -63,6 +64,41 @@ elif st.session_state.selected_page == "NLP Lifecycle":
|
|
| 63 |
"Evaluation",
|
| 64 |
"Deployment"
|
| 65 |
])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
if lifecycle_option == "Data Collection":
|
| 68 |
st.write("""
|
|
|
|
| 56 |
# Content for NLP Lifecycle
|
| 57 |
elif st.session_state.selected_page == "NLP Lifecycle":
|
| 58 |
lifecycle_option = sidebar.radio("Select NLP Lifecycle Step:", [
|
| 59 |
+
"What is NLP Lifyecycle"
|
| 60 |
"Data Collection",
|
| 61 |
"Text Preprocessing",
|
| 62 |
"Text Representation",
|
|
|
|
| 64 |
"Evaluation",
|
| 65 |
"Deployment"
|
| 66 |
])
|
| 67 |
+
|
| 68 |
+
if lifecycle_option == "What is NLP Lifyecycle":
|
| 69 |
+
st.write("""
|
| 70 |
+
#### The NLP life cycle is a structured process for building, using, and maintaining systems that work with human language.
|
| 71 |
+
It turns unstructured text into meaningful insights or automated actions. This process ensures continuous improvement and adapts to real-world needs.
|
| 72 |
+
|
| 73 |
+
Overview of the NLP Life Cycle
|
| 74 |
+
How It Flows:
|
| 75 |
+
1.The process starts with identifying the problem and collecting the required text data.
|
| 76 |
+
2.Then, the data is cleaned and prepared for analysis.
|
| 77 |
+
3.Models are built and tested before being deployed for use.
|
| 78 |
+
4.Regular checks and updates ensure the solution keeps working well.
|
| 79 |
+
Flexible and Adaptive:
|
| 80 |
+
1.Since languages and data change (e.g., new words, trends), the process is repeated as needed.
|
| 81 |
+
2.Models may need updates or retraining to stay accurate.
|
| 82 |
+
Combines Different Fields:
|
| 83 |
+
The process involves skills from language studies, programming, and data analysis to make sure language is understood effectively.
|
| 84 |
+
Designed for Practical Use:
|
| 85 |
+
The goal is to create solutions that can handle tasks like analyzing text, identifying emotions, powering chatbots, or translating languages accurately and efficiently.
|
| 86 |
+
Key Challenges Solved:
|
| 87 |
+
-Managing the complexity of language (e.g., meaning, structure).
|
| 88 |
+
-Working with large and messy datasets.
|
| 89 |
+
-Handling multiple languages and specific industries.
|
| 90 |
+
-Ensuring solutions are fast and efficient.
|
| 91 |
+
- **Steps in the NLP Life Cycle**:
|
| 92 |
+
1.Problem Definition: Identify the problem and define the objective.
|
| 93 |
+
2. Data Collection: Gather relevant text data from various sources.
|
| 94 |
+
3.Data Preprocessing: Clean and prepare the data (e.g., remove noise, tokenize).
|
| 95 |
+
4.Feature Engineering: Convert text into structured data formats.
|
| 96 |
+
5.Model Selection and Training: Choose and train the appropriate NLP model.
|
| 97 |
+
6.Model Evaluation: Assess the model's performance using suitable metrics.
|
| 98 |
+
7.Model Tuning: Optimize the model for better accuracy and efficiency.
|
| 99 |
+
8.Deployment: Integrate the trained model into real-world applications.
|
| 100 |
+
9.Monitoring and Maintenance: Continuously monitor and update the model to handle new data patterns.
|
| 101 |
+
""")
|
| 102 |
|
| 103 |
if lifecycle_option == "Data Collection":
|
| 104 |
st.write("""
|