tlk1997
tlk1997
这个是为了英文单词用的,英文的一个word可能被tokenize成几个子token,只取第一个token,因为一个word对应一个label,不可能多个token的word对应一个label,中文不存在这个问题,所以valid数组这对于中文来说没啥用处。 This is for English words. One word in English may be tokenized into several sub tokens, and only the first token is taken. Because one word corresponds to one...
你好,可以将setup.py中的pyld==2.0.3换成PyLD试试,如果还是下载不了,删除这一行,这个包仅用于[三元组抽取预测函数](https://github.com/zjunlp/DeepKE/blob/main/example/triple/predict.py)中,不影响其余部分使用。
也有可能是因为没有用国内镜像源,需要将conda和pip换成国内的源
这应该是使用某个工具时某个进程使用结束没被关闭,并不影响模型使用
更新下最新代码,这个bug已经修复
可以git pull下最新代码
可以重新安装依赖包试试,建议使用python setup.py install的方式
File "F:\Anaconda3\envs\deepke\lib\site-packages\deepke\relation_extraction\document\model.py", line 7, in from module import AttentionUNet, process_long_input 报错中这一行,对比src中https://github.com/zjunlp/DeepKE/blob/main/src/deepke/relation_extraction/document/model.py#L6 ,是不是修改过代码 找到F:\Anaconda3\envs\deepke\lib\site-packages\deepke\relation_extraction\document\model.py文件 module前加个点
Hello, the dependent packages used in DeepKE have been updated. You can reinstall DeepKE now.
https://github.com/zjunlp/DeepKE/blob/main/example/re/few-shot/run.py#L44 这一行如果cuda可用会用机器中第一张gpu卡跑