Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

ValueError: E:\style-transformer\evaluator\acc_yelp.bin has wrong file format! #2

Open
zhunipingan opened this issue Dec 17, 2019 · 3 comments

Comments

@zhunipingan
Copy link

hi!
Thanks for your code and paper, I get a lot from it.
But when I run the code,I met the error ValueError: E:\style-transformer\evaluator\acc_yelp.bin has wrong file format! in the line self.classifier_yelp = fasttext.load_model(yelp_acc_file.name) , I know that you don't provide a file named ppl_yelp.binary, I just commented related code.
I think maybe the file acc_yelp.bin has some format error? But I am not sure, looking forward to your reply, thanks!

@KuNyaa
Copy link
Collaborator

KuNyaa commented Dec 17, 2019

Hi! It seems that the fasttext changed their model configuration, so our model parameters cannot be loaded by the new version of the fasttext. To solve this issue, you can degrade your fasttext to 0.8.3, which is the version we used before.

@zhunipingan
Copy link
Author

Thanks!
I solved this problem successfully using your solution. Looking forward to your new work~

@HeyixInn
Copy link

HeyixInn commented Jan 1, 2024

can you tell me how to degrade fasttext to 0.8.3? thank u

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

No branches or pull requests

3 participants