Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dai-Wenxun committed Dec 3, 2024
1 parent a8119e0 commit 9dc29f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def load_example_input(text_path: str) -> tuple:
texts, lens = [], []
for line in lines:
s = line.strip()
s_l, s_t = s.split(" ")
s_l = s.split(" ")[0]
s_t = s[(len(s_l) + 1):]
lens.append(int(s_l))
texts.append(s_t)
return texts, lens
Expand Down

0 comments on commit 9dc29f6

Please sign in to comment.