2024-04-20 07:31:38 发布
网友
我有这个:
texts = ['human', 'machine', 'interface']
当我和Gensim一起做这个的时候:
这会导致添加unicodeu'。。。我怎么能抑制这一切?在
u'
如果您认为错误是由unicode引起的,可以尝试一下。在
u'whateveryourwtring'.encode('ascii', 'ignore') u'aあä'.encode('ascii', 'ignore')
如果您认为错误是由unicode引起的,可以尝试一下。在
相关问题 更多 >
编程相关推荐