You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from wtpsplit import SaT
sat = SaT("sat-3l")
# optionally run on GPU for better performance
# also supports TPUs via e.g. sat.to("xla:0"), in that case pass `pad_last_batch=True` to sat.split
sat.half().to("cuda")
[v for v in sat.split(["This is a test This is another test.", ""])]
wtpsplit/wtpsplit/extract.py", line 194, in extract
assert current_chunk == num_chunks
AssertionError
The text was updated successfully, but these errors were encountered:
Similar issue here. It can also happen when the text given is made of newlines (ex: \r\n\r\n\r\n\r\n\r\n\r\n) which is then tokenized into an empty string and finally yield the same assertion error.
Hi, thanks for raising this. Both cases are now handled with the current version (2.1.2), which I just released. Please let me know if this fixes your issues.
The text was updated successfully, but these errors were encountered: