Skip to content

Commit

Permalink
Update warning message for python version compatibility with uroman
Browse files Browse the repository at this point in the history
  • Loading branch information
nandwalritik committed Aug 8, 2024
1 parent 2177a7f commit ebb09fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transformers/models/vits/tokenization_vits.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def prepare_for_tokenization(
logger.warning(
"Text to the tokenizer contains non-Roman characters. To apply the `uroman` pre-processing "
"step automatically, ensure the `uroman` Romanizer is installed with: `pip install uroman` "
"Note `uroman` requires python version >= 3.10"
"Otherwise, apply the Romanizer manually as per the instructions: https://github.com/isi-nlp/uroman"
)
else:
Expand Down

0 comments on commit ebb09fd

Please sign in to comment.