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
We still want to support version 0.1.96 (which is included as a Git submodule in the third_party directory) so we should wrap this code with a preprocessor condition #if ... #else ... #endif.
However, I'm not sure what the condition should be. SentencePiece exposes a version string but I don't know how to use it in a preprocessor comparison.
Unfortunately, I just happened to encounter this helping @boegel with how to fix this when packaging Tokenizer for easybuild (where we just patch it for since we know the version used). I wanted to make change known to everyone else.
here
Tokenizer/src/SentencePiece.cc
Lines 51 to 57 in 813ab83
either a quick conversion
is needed or possible the string_view should switch should be propagated up the abstractions.
ToPieceArray was added in the same release that made this switch to views.
google/sentencepiece@631420b#diff-77e6a3b3bfda73d84fe1fef8205f2a2ec1d46b8f232100041f7135505f8adcefR52
The text was updated successfully, but these errors were encountered: