Skip to content

Commit

Permalink
Added return to map_indices_to_words
Browse files Browse the repository at this point in the history
  • Loading branch information
ayaan-qadri committed Oct 13, 2024
1 parent 5bbf410 commit f1b9c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pythainlp/tokenize/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def map_indices_to_words(index_list, sentences):
n_sum += len(words)
for _ in range(n):
del c[0]

return result

def sent_tokenize(
text: Union[str, List[str]],
Expand Down

0 comments on commit f1b9c11

Please sign in to comment.