danlou commited on
Commit
ca58341
1 Parent(s): 7af11f5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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(): # expects whitespace tokenization
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