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

AttributeError: 'FastSequenceTagger' object has no attribute 'selection' #59

Open
gxc199912 opened this issue Jun 14, 2024 · 0 comments

Comments

@gxc199912
Copy link

When I run 'CUDA_VISIBLE_DEVICES=0 python train.py --config config/conll_03_english.yaml --test', I get AttributeError:
Traceback (most recent call last):
File "/data_share/gxc_data/ACE/train.py", line 157, in
trainer.final_test(
File "/data_share/gxc_data/ACE/flair/trainers/reinforcement_trainer.py", line 1444, in final_test
for name, module in self.model.named_modules():
File "/data_share/gxc_data/miniconda3/envs/ace/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1207, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'FastSequenceTagger' object has no attribute 'selection'

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

1 participant