fast-bert icon indicating copy to clipboard operation
fast-bert copied to clipboard

Updated data.py and data_cls.py to work with xlsx data files

Open lingdoc opened this issue 3 years ago • 0 comments

This hotfix allows xlsx files as data files for training and evaluation. It simply checks whether xlsx is in the filename and uses the read_excel() import function from the pandas library. It may require openpyxl to be installed via pip or another package manager.

Addresses #311 (possibly others), whereby imports via read_csv() can result in errors due to formatting problems.

lingdoc avatar Oct 17 '22 04:10 lingdoc