问题描述
这是我的代码,
import tensorflow_hub as hub
module_url = "C:/study/web_mystem_skipgram_500_2_2015.bin.gz"
# Import the Universal Sentence Encoder's TF Hub module
embed = hub.Module(module_url)
UnicodeDecodeError Traceback (most recent call last)
<ipython-input-7-92031fbf4749> in <module>
2
3 # Import the Universal Sentence Encoder's TF Hub module
----> 4 embed = hub.Module(module_url)
D:\Users\anaconda3\lib\site-packages\tensorflow_hub\module.py in __init__(self,spec,trainable,name,tags)
155 """
156 self._graph = tf.compat.v1.get_default_graph()
--> 157 self._spec = as_module_spec(spec)
158 self._trainable = trainable
.....
---> 78 self._read_buf = _pywrap_file_io.BufferedInputStream(
79 self.__name,1024 * 512)
80
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd1 in position 108: invalid continuation byte
我在 tensorflow_hub 模块中找不到这样的问题解决方案; 那我该怎么办!请帮忙。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)