Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Sentence piece wants a string, not <class 'pathlib.PosixPath'> #2

Open
xaviergonzalez opened this issue Nov 11, 2024 · 1 comment
Open

Comments

@xaviergonzalez
Copy link

Hi, I've downloaded your code and pip installed your requirements.txt

However, when I try to run python one_file_ref.py, I get an error stemming from this line in tokenizer.py

self._model = SentencePieceProcessor(model_file=model_path)

It seems that model_path has type <class 'pathlib.PosixPath'>, whereas SentencePieceProcessor wants a string.

What version of python were you using? It seems like this is a versioning problem that we'd like to get around?

This issue may be relevant: omry/omegaconf#934

@AakashKumarNain
Copy link
Owner

This is weird. I don't remember the exact version, but it should either be 31.0 or 3.11 (more probably this one). Anyway, thanks for notifying this. I will fix this

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants