我正在尝试将 glove.6B.300d.txt 文件读入 Pandas 数据框。(文件可以从这里下载:https ://github.com/stanfordnlp/GloVe )
以下是我得到的例外:
glove = pd.read_csv(filename, sep = ' ')
ParserError: Error tokenizing data. C error: EOF inside string starting at line 8
glove = pd.read_csv(filename, sep = ' ', engine = 'python')
ParserError: field larger than field limit (131072)