danlou commited on
Commit
cf7ba82
1 Parent(s): 54630de

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