Open nouranali opened 1 year ago
the solution for me was to set self.tag_dictionary=tag_dictionary in the sequencetagger class and replace all tag_dictionary with self.tag_dictionary
Hi @nouranali ,
I suppose you are looking for tagger.label_dictionary
Describe the bug
when I import sequencetagger model and try to access the tag dictionary I get the following error
AttributeError: 'SequenceTagger' object has no attribute 'tag_dictionary'
To Reproduce
Expected behavior
len of dictionary
Logs and Stack traces
No response
Screenshots
No response
Additional Context
No response
Environment
Versions:
Flair
0.12.2
Pytorch
1.10.0+cu102
Transformers
4.30.1
GPU
False