chiayewken / Span-ASTE

Code Implementation of "Learning Span-Level Interactions for Aspect Sentiment Triplet Extraction".

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

command命令错误

lzf00 opened this issue · comments

{'command': 'cd /home/data2/yj/Span-ASTE && allennlp train outputs/14lap/seed_0/config.jsonnet --serialization-dir outputs/14lap/seed_0/weights --include-package span_model'}
/bin/sh: allennlp: 未找到命令,请问这个在什么文件里改,一直没找到。。。

你好,请问是否装了 allennlp 吗?这里
另外,你可以试一试这里的示范代码:https://github.com/chiayewken/Span-ASTE/blob/main/demo.ipynb

好的,我又按照教程做了一遍,但是碰到了一个新问题,TypeError: BiAffineSpanExtractor.forward: sequence_mask is not present
image

这可能是版本问题,请问你的 python,allennlp 和 torch 是什么版本?

python3.7,allennlp1.2,torch1.7,我知道了,是我的显卡是3090的,需要安装cuda11+,这个环境装的是10.2导致显卡不能使用,感谢回复

您好,请问如何在训练时对模型进行调试呢,用allennlp train这个命令如何才能断点调试

关于 allennlp train,不太好做 debugging,你可以在训练之前分别在模型部分做unit tests

好的,我又按照教程做了一遍,但是碰到了一个新问题,TypeError: BiAffineSpanExtractor.forward: sequence_mask is not present image

您好,我也遇到了相同的问题,请问您解决了吗?有什么办法吗?

Hi the error may be due to conflicting versions of code and pretrained model, can you run "git checkout f53ec3" and reinstall the requirements.txt?