Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

复现的问题 #5

Open
ZR5932 opened this issue Dec 1, 2021 · 5 comments
Open

复现的问题 #5

ZR5932 opened this issue Dec 1, 2021 · 5 comments

Comments

@ZR5932
Copy link

ZR5932 commented Dec 1, 2021

请问tensorflow的版本是多少的?我看requirements.txt里tensorflow是1.14.0的,但是运行不了,报错ModuleNotFoundError: No module named 'tensorflow.python.platform',我搜了一下有的遇到过类似的情况,说是版本不对应,然后按照别人的版本下了一个1.13.1 ,也是不行。想问一下,这所有的代码都是用的同一个版本的tensorflow么?具体的tensorflow和cuda版本是多少呢?

@DSXiangLi
Copy link
Owner

@ZR5932 https://github.com/DSXiangLi/ChineseNER/blob/main/requirement.txt requirement 是我直接从当前环境导出来的,可以直接装个virtual试一下

@ZR5932
Copy link
Author

ZR5932 commented Dec 5, 2021

请问运行python ./data/people_daily/preprocess.py时,会出现 ValueError: invalid vector on line 708572 (is this really the text format?)报错,这是??另外,在生成tfrecord时,利用三种word_enhance是??

@DSXiangLi
Copy link
Owner

@ZR5932 第一个问题我不太确定,可能是你下载的word embedding 是binary format的。如果是glove format试一下把glove_2_wv里面加载词向量的部分KeyedVectors.load_word2vec_format,设置binary=True。word enhance可以看下这篇博客https://www.cnblogs.com/gogoSandy/p/14965711.html

@LinJingOK
Copy link

Reference in new issue
我在复现bert_bilstm_crf_adv时遇到下面问题
ValueError: Shape must be rank 2 but is rank 1 for 'task1_msra/crf_layer/Slice_2' (op: 'Slice') with input shapes: [?], [2], [2].能帮我解决一下吗?

@LinJingOK
Copy link

请问tensorflow的版本是多少的?我看requirements.txt里tensorflow是1.14.0的,但是运行不了,报错ModuleNotFoundError: No module named 'tensorflow.python.platform',我搜了一下有的遇到过类似的情况,说是版本不对应,然后按照别人的版本下了一个1.13.1 ,也是不行。想问一下,这所有的代码都是用的同一个版本的tensorflow么?具体的tensorflow和cuda版本是多少呢?

你好,你环境的问题解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants