Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tiny tweak to allow BatchEncoding.token_to_char when token doesn't co…
…rrespond to chars (huggingface#15901) * tweak to allow BatchEncoding.char_to_token(0) * update docstring * remote trailing whitespace * make fixup * make value checking for span_indices explicit Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
- Loading branch information