ProsusAI / finBERT

Financial Sentiment Analysis with BERT
Apache License 2.0
1.42k stars 413 forks source link

pytorch_model.bin file #18

Closed zoey-lyu closed 4 years ago

zoey-lyu commented 4 years ago

Hi!

I just downloaded this .bin file and was wondering how to get the following two files(Language model trained on TRC2 & Sentiment analysis model trained on Financial PhraseBank) from it?

Thanks!!

sharon-gao commented 4 years ago

I have the same question. Some one mentioned in https://github.com/ProsusAI/finBERT/issues/8#issuecomment-568299104 that the model pertained on TRC2 should be placed in the directory models/language_model/finbertTRC2/pytorch_model.bin, but when I followed this it failed. The error is FileNotFoundError: [Errno 2] No such file or directory: '/Users/gaoshuang/Desktop/finBERT/models/language_model/finbertTRC2/bert_config.json'

sharon-gao commented 4 years ago

I solved this problem by placing the models in the directory mentioned above and adding the config.json to the same directory. Actually the author has written the steps in README Models.