小编Ash*_*rma的帖子

RuntimeError:c++ 注册表中也缺少 python 注册表 ({'SentencepieceEncodeSparse'}) 中缺少的图形操作

我正在尝试sentecepiece在 Windows 系统中使用,同时实现tensorflow 中描述的通用句子编码器。

但我收到以下错误:

RuntimeError:c++ 注册表中也没有 python 注册表 ({'SentencepieceEncodeSparse'}) 中缺少的图形操作。

我知道现在已经支持这个库:

我也尝试安装sentencepiece使用 pip install --user sentencepiece 许多版本。我可以 import sentencepiece,但从RuntimeError: Graph ops missing from the python registry ({'SentencepieceEncodeSparse'})C++ 注册表中也没有得到错误 。

我也试过 conda install tf_sentencepiece,但它抛出一个错误: anaconda3\lib\site-packages\tf_sentencepiece\_sentencepiece_processor_ops. 因此,它要么不是设计为在 Windows 上运行,要么包含错误。


NotFoundError                             Traceback (most recent call last)
<ipython-input-62-956b40af1330> in <module>
----> 1 import tf_sentencepiece

~\AppData\Local\Continuum\anaconda3\lib\site-packages\tf_sentencepiece\__init__.py in <module>
      3 from __future__ import print_function
      4 
----> 5 from tf_sentencepiece.sentencepiece_processor_ops import *

~\AppData\Local\Continuum\anaconda3\lib\site-packages\tf_sentencepiece\sentencepiece_processor_ops.py …
Run Code Online (Sandbox Code Playgroud)

python windows

5
推荐指数
1
解决办法
1957
查看次数

标签 统计

python ×1

windows ×1