Skip to content

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

Description

@gxc199912

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions