调python代码遇到的问题
1.return _message.default_pool.AddSerializedFile(serialized_pb) TypeError: expected bytes, str found
解决方法:serialized_pb = b'字符串内容' 或者"字符串".encode('utf-8')
2.ModuleNotFoundError: No module named ‘unicode’
solution:
I’m not entirely sure if this is the issue but in the source code there’s a spot that converts the cleaned text to unicode. In Python 3, the command unicode() was deprecated and just put into str(). Perhaps you could just edit the source code in the conda files (I installed lda2vec with anaconda). Or you could also run your script in a Python 2 environment.As a side note, I’d real