utterworks / fast-bert

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

bug in data_lm.py #278

Closed roccia closed 3 years ago

roccia commented 3 years ago

https://github.com/kaushaltrivedi/fast-bert/blob/b41ee05af18fbbff3e5fa209476041ce345e4c6a/fast_bert/data_lm.py#L193

this line str(data_dir / train_file) cause TypeError: unsupported operand type(s) for /: 'str' and 'str' error, it should bedata_dir + '/' + train_file

hope I'm right about it