Skip to content

Commit 417e61e

Browse files
committed
implement wd's tips
remove tocs, lower all heading levels, move 'make a copy' message
1 parent d379649 commit 417e61e

5 files changed

+1053
-1247
lines changed

SP22/nlp-series/workshop-1/Interactive_Notebook_NLP_Series_Workshop_1_Rule_Based_+_Bag_of_Words.ipynb

Lines changed: 49 additions & 86 deletions
Large diffs are not rendered by default.

SP22/nlp-series/workshop-1/Main_Notebook_NLP_Series_Workshop_1_Rule_Based_+_Bag_of_Words.ipynb

Lines changed: 14 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -6,44 +6,7 @@
66
"id": "VMb4vyeWzQYJ"
77
},
88
"source": [
9-
"# Main Notebook: NLP Series Workshop 1: Getting Started with Sentiment Analysis"
10-
]
11-
},
12-
{
13-
"cell_type": "markdown",
14-
"metadata": {
15-
"id": "TEbYdn-N0Gxe"
16-
},
17-
"source": [
18-
"## Table of Contents\n",
19-
"<div class=\"alert alert-block alert-info\">\n",
20-
"<ol>\n",
21-
" <li>\n",
22-
" <a href=\"#scrollTo=Setup_and_Exploration\">Setup and Exploration</a>\n",
23-
" <ol type=\"a\">\n",
24-
" <li><a href=\"#scrollTo=a_Setup\">Setup</a></li>\n",
25-
" <li><a href=\"#scrollTo=b_Exploration\">Exploration</a></li>\n",
26-
" </ol>\n",
27-
" </li>\n",
28-
" <li>\n",
29-
" <a href=\"#scrollTo=Rule_Based_Classifier\">Rule-Based Classifer</a>\n",
30-
" <ol type=\"a\">\n",
31-
" <li><a href=\"#scrollTo=a_Building_the_Rule_based_Classifier\">Building the Rule-Based Classifier</a></li>\n",
32-
" <li><a href=\"#scrollTo=b_Evaluating_the_Rule_based_Classifier\">Evaluating the Rule-Based Classifier</a></li>\n",
33-
" </ol>\n",
34-
" </li>\n",
35-
" <li>\n",
36-
" <a href=\"#scrollTo=NLP_Classifier\">NLP Classifier</a>\n",
37-
" <ol type=\"a\">\n",
38-
" <li><a href=\"#scrollTo=a_Intro_to_Bag_of_Words\">Intro to Bag of Words</a></li>\n",
39-
" <li><a href=\"#scrollTo=b_Bag_of_Words_Logistic_Regression\">Bag of Words + Logistic Regression</a></li>\n",
40-
" <li><a href=\"#scrollTo=c_Bag_of_Words_Logistic_Regression_vs_Rule_Based\">Bag of Words + Logistic Regression vs Rule-Based</a></li>\n",
41-
" <li><a href=\"#scrollTo=d_Bag_of_Words_Neural_Net\">Bag of Words + Neural Net</a></li>\n",
42-
" </ol>\n",
43-
" </li>\n",
44-
" <li><a href=\"#scrollTo=Conclusion\">Conclusion</a></li>\n",
45-
"</ol>\n",
46-
"</div>"
9+
"## Main Notebook: NLP Series Workshop 1: Getting Started with Sentiment Analysis"
4710
]
4811
},
4912
{
@@ -66,7 +29,7 @@
6629
"id": "-bQwj_cIK_nO"
6730
},
6831
"source": [
69-
"# 1. Setup and Exploration"
32+
"## 1. Setup and Exploration"
7033
]
7134
},
7235
{
@@ -75,7 +38,7 @@
7538
"id": "UvCGe8R-IIZj"
7639
},
7740
"source": [
78-
"## a. Setup"
41+
"### a. Setup"
7942
]
8043
},
8144
{
@@ -187,7 +150,7 @@
187150
"id": "gCJQ1bjD4vE9"
188151
},
189152
"source": [
190-
"## b. Exploration"
153+
"### b. Exploration"
191154
]
192155
},
193156
{
@@ -572,7 +535,7 @@
572535
"id": "Did9nmVDLMtm"
573536
},
574537
"source": [
575-
"# 2. Rule-Based Classifier"
538+
"## 2. Rule-Based Classifier"
576539
]
577540
},
578541
{
@@ -610,7 +573,7 @@
610573
"id": "cwtyegP5cUGG"
611574
},
612575
"source": [
613-
"## a. Building the Rule-based Classifier"
576+
"### a. Building the Rule-based Classifier"
614577
]
615578
},
616579
{
@@ -647,7 +610,7 @@
647610
"id": "9RzHYhFhczrM"
648611
},
649612
"source": [
650-
"## b. Evaluating the Rule-based Classifier"
613+
"### b. Evaluating the Rule-based Classifier"
651614
]
652615
},
653616
{
@@ -766,7 +729,7 @@
766729
"id": "FpvqZV4BLV0e"
767730
},
768731
"source": [
769-
"# 3. NLP Classifier"
732+
"## 3. NLP Classifier"
770733
]
771734
},
772735
{
@@ -775,7 +738,7 @@
775738
"id": "BxfOmtXsdy4d"
776739
},
777740
"source": [
778-
"## a. Intro to Bag of Words"
741+
"### a. Intro to Bag of Words"
779742
]
780743
},
781744
{
@@ -844,7 +807,7 @@
844807
"id": "RMswXCVWk_d0"
845808
},
846809
"source": [
847-
"## b. Bag of Words + Logistic Regression"
810+
"### b. Bag of Words + Logistic Regression"
848811
]
849812
},
850813
{
@@ -1006,7 +969,7 @@
1006969
"id": "iWainC6yoS9Q"
1007970
},
1008971
"source": [
1009-
"## c. Bag of Words + Logistic Regression vs Rule-Based"
972+
"### c. Bag of Words + Logistic Regression vs Rule-Based"
1010973
]
1011974
},
1012975
{
@@ -1036,7 +999,7 @@
1036999
"id": "QE71_svgQ2FK"
10371000
},
10381001
"source": [
1039-
"## d. Bag of Words + Neural Net"
1002+
"### d. Bag of Words + Neural Net"
10401003
]
10411004
},
10421005
{
@@ -1083,7 +1046,7 @@
10831046
"id": "Y_rE7Kq9dp4q"
10841047
},
10851048
"source": [
1086-
"Check out this link for a guide to `MLPClassifier()` and its many props (including `max_iter`, `activation`, `learning_rate`, etc) to optimitze a neural net: https://scikit-learn.org/stable/modules/generated/sklearn.neural_network.MLPClassifier.html"
1049+
"Check out this link for a guide to `MLPClassifier()` and its many props (including `max_iter`, `activation`, `learning_rate`, etc) to optimize a neural net: https://scikit-learn.org/stable/modules/generated/sklearn.neural_network.MLPClassifier.html"
10871050
]
10881051
},
10891052
{
@@ -1174,7 +1137,7 @@
11741137
"id": "hUqoaiYuLdpD"
11751138
},
11761139
"source": [
1177-
"# 4. Conclusion"
1140+
"## 4. Conclusion"
11781141
]
11791142
},
11801143
{

0 commit comments

Comments
 (0)