JRQi commited on
Commit
41ceeed
1 Parent(s): 33a6b2e

Update game1.py

Browse files
Files changed (1) hide show
  1. game1.py +1 -1
game1.py CHANGED
@@ -26,7 +26,7 @@ def read1(lang, num_selected_former):
26
  while len(tokens) <= min_len or '\\' in text['text'] or '//' in text['text']:
27
  index_selected = random.randint(0,len(content)/2-1)
28
  text = eval(content[int(index_selected*2)])
29
- res_tmp = [(i, 0) for i in tokens]
30
  res = {"original": text['text'], "interpretation": res_tmp}
31
  # res_empty = {"original": "", "interpretation": []}
32
 
 
26
  while len(tokens) <= min_len or '\\' in text['text'] or '//' in text['text']:
27
  index_selected = random.randint(0,len(content)/2-1)
28
  text = eval(content[int(index_selected*2)])
29
+ res_tmp = [(i, 0) for i in text['text'].split(' ')]
30
  res = {"original": text['text'], "interpretation": res_tmp}
31
  # res_empty = {"original": "", "interpretation": []}
32