Update README.md
Browse files
README.md
CHANGED
|
@@ -23,7 +23,7 @@ If you're interested in retaining verified users which were also retained during
|
|
| 23 |
```python
|
| 24 |
def preprocess(text):
|
| 25 |
preprocessed_text = []
|
| 26 |
-
for t in text.split():
|
| 27 |
if len(t) > 1:
|
| 28 |
t = '@user' if t[0] == '@' and t.count('@') == 1 else t
|
| 29 |
t = 'http' if t.startswith('http') else t
|
|
|
|
| 23 |
```python
|
| 24 |
def preprocess(text):
|
| 25 |
preprocessed_text = []
|
| 26 |
+
for t in text.split():
|
| 27 |
if len(t) > 1:
|
| 28 |
t = '@user' if t[0] == '@' and t.count('@') == 1 else t
|
| 29 |
t = 'http' if t.startswith('http') else t
|