Closed nayomirana closed 4 years ago
hi @nayomirana . how u solve this?
The solution is to edit line 69 in finbert/utils.py as follows:
Original: with open(input_file, "r") as f: Modified: with open(input_file, "r", encoding="utf8") as f:
You have to add the encoding="utf8" parameter to the open function in order to avoid the above 'charmap' error
Hi,
I downloaded the data set from the Financial Phrase Bank from Malo et al. (2014). And created train.csv using the data. train_data = finbert.get_data('train') But for the above code snippets in "finbert_training"-notebook, an error message was generated as follows.
Is there any method to resolve this issue.
Thanks..
UnicodeDecodeError Traceback (most recent call last)