utterworks / fast-bert

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

Updated learner_util.py save_model() to work with an alternate path in string format #312

Open lingdoc opened 1 year ago

lingdoc commented 1 year ago

Currently when a path string is provided to learner.save_model(), a directory is not created. This hotfix converts the string to a Path object so that a new directory can be created.