Closed fmafelipe closed 1 year ago
@fmafelipe what Flair version are you on?
@alanakbik I am using Colab, it shows that the version "flair-0.11.2" is installed, although to use TransformerWordEmbeddings it had an error and I had to specify the installation of transformers==4.18.0
We are on Flair 0.11.3 now, perhaps you could test with this version? If the error persists, could you supply a minimal working example with data to reproduce this error?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@alanakbik
I’m still facing this issue on the version 0.11.3.
Logs:
2023-01-28 21:58:59,809 The string 'B-' is not in dictionary! Dictionary contains only: ['O', 'S-INNOVATION', 'B-INNOVATION', 'E-INNOVATION', 'I-INNOVATION', 'S-UTILIZATION', 'B-UTILIZATION', 'E-UTILIZATION', 'I-UTILIZATION', 'S-MATERIAL', 'B-MATERIAL', 'E-MATERIAL', 'I-MATERIAL', '
I also tried adding the argument explicitly as follows:
tag_dictionary = corpus.make_label_dictionary("ner", add_unk=True)
But it does not seem to be recognised as the get the following error: tag_dictionary = corpus.make_label_dictionary("ner", add_unk=True) TypeError: make_label_dictionary() got an unexpected keyword argument 'add_unk'
Hello, I am training a ner model, apparently I have a wrong tag in my training corpus because during the training process I get this error.![errorner](https://user-images.githubusercontent.com/50722626/168899243-e104d09c-a177-4a81-8a70-7f90938c9426.png)
I already checked the corpus several times and I can't find the error, so I want to do what the problem tells me to add add_unk = True, but I don't know where to add it, in what part of the code. The code I am using is the following
Thanks