我想从预先训练的手套嵌入中提取特征。但我在某些词上犯了错误。这是单词token的列表。在
words1=['nuclear','described', 'according', 'called','physics', 'account','interesting','holes','theoretical','like','space','radiation','property','impulsed','darkfield']
我从“冲动的”、“黑暗的”单词中得到了Keyerror,因为这些可能是看不见的单词。我怎样才能避免这个错误呢。在
以下是我的完整代码:
^{pr2}$“脉冲”字的错误消息
我建议如下
相关问题 更多 >
编程相关推荐