Mpavan45 commited on
Commit
41e2874
·
verified ·
1 Parent(s): 79269c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +49 -33
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 == "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("""
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.