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

task4有bug #11

Open
HXYstudy opened this issue Dec 28, 2020 · 3 comments
Open

task4有bug #11

HXYstudy opened this issue Dec 28, 2020 · 3 comments

Comments

@HXYstudy
Copy link

Traceback (most recent call last):
File "main.py", line 127, in
cn.train()
File "main.py", line 71, in train
loss = model.log_likelihood(X,y)
File "/content/drive/My Drive/fudanlp/nlp-beginner-finish-master/task4/model/LSTM_CRF.py", line 40, in log_likelihood
x = x.transpose(0,1)
IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)

@HXYstudy
Copy link
Author

或许是我的某些库版本和您的不太一样,能否把运行所需要的库的版本给出说明呢

@iwanttoknowmore
Copy link

你好,请问你这个问题解决了吗

@wencan
Copy link

wencan commented Jan 31, 2024

遇到同样的问题
python 3.8
torch 2.1.2

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