Update app.py
Browse files
app.py
CHANGED
|
@@ -57,6 +57,7 @@ if st.session_state.selected_page == 'What is NLP?':
|
|
| 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",
|
|
@@ -65,42 +66,57 @@ elif st.session_state.selected_page == "NLP Lifecycle":
|
|
| 65 |
"Deployment"
|
| 66 |
])
|
| 67 |
|
| 68 |
-
if lifecycle_option == "
|
| 69 |
st.write("""
|
| 70 |
-
####
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
|
| 103 |
-
|
| 104 |
st.write("""
|
| 105 |
#### 1. Data Collection
|
| 106 |
Data collection is the first stage of the NLP lifecycle. It involves gathering relevant text data from various sources to analyze and process.
|
|
|
|
| 57 |
elif st.session_state.selected_page == "NLP Lifecycle":
|
| 58 |
lifecycle_option = sidebar.radio("Select NLP Lifecycle Step:", [
|
| 59 |
"What is NLP Lifyecycle"
|
| 60 |
+
"Problem Definition"
|
| 61 |
"Data Collection",
|
| 62 |
"Text Preprocessing",
|
| 63 |
"Text Representation",
|
|
|
|
| 66 |
"Deployment"
|
| 67 |
])
|
| 68 |
|
| 69 |
+
if lifecycle_option == "Overview of the NLP Life Cycle":
|
| 70 |
st.write("""
|
| 71 |
+
#### Overview of the NLP Life Cycle
|
| 72 |
+
The NLP life cycle is a structured process for building, using, and maintaining systems that work with human language. It turns unstructured text into meaningful insights or automated actions. This process ensures continuous improvement and adapts to real-world needs.
|
| 73 |
+
|
| 74 |
+
- **How It Flows**:
|
| 75 |
+
- The process starts with identifying the problem and collecting the required text data.
|
| 76 |
+
- Then, the data is cleaned and prepared for analysis.
|
| 77 |
+
- Models are built and tested before being deployed for use.
|
| 78 |
+
- Regular checks and updates ensure the solution keeps working well.
|
| 79 |
+
|
| 80 |
+
- **Flexible and Adaptive**:
|
| 81 |
+
- Since languages and data change (e.g., new words, trends), the process is repeated as needed.
|
| 82 |
+
- Models may need updates or retraining to stay accurate.
|
| 83 |
+
|
| 84 |
+
- **Combines Different Fields**:
|
| 85 |
+
- The process involves skills from language studies, programming, and data analysis to make sure language is understood effectively.
|
| 86 |
+
|
| 87 |
+
- **Designed for Practical Use**:
|
| 88 |
+
- The goal is to create solutions that can handle tasks like analyzing text, identifying emotions, powering chatbots, or translating languages accurately and efficiently.
|
| 89 |
+
|
| 90 |
+
- **Key Challenges Solved**:
|
| 91 |
+
- Managing the complexity of language (e.g., meaning, structure).
|
| 92 |
+
- Working with large and messy datasets.
|
| 93 |
+
- Handling multiple languages and specific industries.
|
| 94 |
+
- Ensuring solutions are fast and efficient.
|
| 95 |
+
|
| 96 |
+
#### Steps in the NLP Life Cycle
|
| 97 |
+
1. Problem Definition
|
| 98 |
+
2. Data Collection
|
| 99 |
+
3. Data Preprocessing
|
| 100 |
+
4. Feature Engineering
|
| 101 |
+
5. Model Selection and Training
|
| 102 |
+
6. Model Evaluation
|
| 103 |
+
7. Model Tuning
|
| 104 |
+
8. Deployment
|
| 105 |
+
9. Monitoring and Maintenance
|
| 106 |
""")
|
| 107 |
+
elif lifecycle_option == "Problem Definition":
|
| 108 |
+
st.write("""
|
| 109 |
+
#### 1. Problem Definition
|
| 110 |
+
Problem definition is the first stage of the NLP lifecycle. It involves identifying the goal and understanding the problem that NLP can solve.
|
| 111 |
+
- **Key Questions**:
|
| 112 |
+
- What is the main objective of the analysis?
|
| 113 |
+
- What type of text data is being handled (e.g., reviews, social media, documents)?
|
| 114 |
+
- What output is expected (e.g., sentiment score, summary, classification)?
|
| 115 |
+
**Example**: Define whether the goal is to classify customer reviews as positive or negative or to extract key topics from product reviews.
|
| 116 |
+
""")
|
| 117 |
+
|
| 118 |
|
| 119 |
+
elif lifecycle_option == "Data Collection":
|
| 120 |
st.write("""
|
| 121 |
#### 1. Data Collection
|
| 122 |
Data collection is the first stage of the NLP lifecycle. It involves gathering relevant text data from various sources to analyze and process.
|