|
35 | 35 | },
|
36 | 36 | {
|
37 | 37 | "cell_type": "code",
|
38 |
| - "execution_count": 71, |
| 38 | + "execution_count": 3, |
39 | 39 | "metadata": {},
|
40 | 40 | "outputs": [
|
41 | 41 | {
|
|
60 | 60 | },
|
61 | 61 | {
|
62 | 62 | "cell_type": "code",
|
63 |
| - "execution_count": 70, |
| 63 | + "execution_count": 4, |
64 | 64 | "metadata": {},
|
65 | 65 | "outputs": [],
|
66 | 66 | "source": [
|
|
84 | 84 | },
|
85 | 85 | {
|
86 | 86 | "cell_type": "code",
|
87 |
| - "execution_count": 67, |
| 87 | + "execution_count": 5, |
88 | 88 | "metadata": {},
|
89 | 89 | "outputs": [
|
90 | 90 | {
|
91 | 91 | "name": "stdout",
|
92 | 92 | "output_type": "stream",
|
93 | 93 | "text": [
|
94 | 94 | "---Text with punctuations:\n",
|
95 |
| - " Hello world! Remove punctuations marks from this text; will you?\n", |
| 95 | + " Hello world! Remove punctuation marks from this text; will you?\n", |
96 | 96 | "By the way, Good luck.\n",
|
97 | 97 | "---------\n",
|
98 | 98 | "---Text without punctuations:\n",
|
99 |
| - " Hello world Remove punctuations marks from this text will you\n", |
| 99 | + " Hello world Remove punctuation marks from this text will you\n", |
100 | 100 | "By the way Good luck\n"
|
101 | 101 | ]
|
102 | 102 | }
|
103 | 103 | ],
|
104 | 104 | "source": [
|
105 | 105 | "#removing punctuations from a text with function remove_punctuations\n",
|
106 |
| - "text='Hello world! Remove punctuations marks from this text;'\n", |
| 106 | + "text='Hello world! Remove punctuation marks from this text;'\n", |
107 | 107 | "text+=' will you?\\nBy the way, Good luck.'\n",
|
108 | 108 | "print('---Text with punctuations:\\n',text)\n",
|
109 | 109 | "print('---------')\n",
|
|
112 | 112 | },
|
113 | 113 | {
|
114 | 114 | "cell_type": "code",
|
115 |
| - "execution_count": 68, |
| 115 | + "execution_count": 6, |
116 | 116 | "metadata": {},
|
117 | 117 | "outputs": [
|
118 | 118 | {
|
119 | 119 | "name": "stdout",
|
120 | 120 | "output_type": "stream",
|
121 | 121 | "text": [
|
122 | 122 | "---Text with punctuations:\n",
|
123 |
| - " Hello world! Remove punctuations marks from this text; will you?\n", |
| 123 | + " Hello world! Remove punctuation marks from this text; will you?\n", |
124 | 124 | "By the way, Good luck.\n",
|
125 | 125 | "---------\n",
|
126 | 126 | "---Text without punctuations:\n",
|
127 |
| - " Hello world Remove punctuations marks from this text will you\n", |
| 127 | + " Hello world Remove punctuation marks from this text will you\n", |
128 | 128 | "By the way Good luck\n"
|
129 | 129 | ]
|
130 | 130 | }
|
131 | 131 | ],
|
132 | 132 | "source": [
|
133 | 133 | "#removing punctuations from a text with function only_alphanumeric\n",
|
134 |
| - "text='Hello world! Remove punctuations marks from this text;'\n", |
| 134 | + "text='Hello world! Remove punctuation marks from this text;'\n", |
135 | 135 | "text+=' will you?\\nBy the way, Good luck.'\n",
|
136 | 136 | "print('---Text with punctuations:\\n',text)\n",
|
137 | 137 | "print('---------')\n",
|
|
0 commit comments