utterworks / fast-bert

Super easy library for BERT based NLP models
Apache License 2.0
1.85k stars 342 forks source link

Problem in prediction AttributeError: 'WindowsPath' object has no attribute 'decode' #256

Open Thistleice opened 3 years ago

Thistleice commented 3 years ago

I've trained the model and saved it to OUTPUT_DIR/'model_out'

But predictions always get wrong that "AttributeError: 'WindowsPath' object has no attribute 'decode'"

The training data I used included Chinese, and the berter-base-Chinese pre-training model was used. I don't know if that's the reason?