You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I built a sample model with only 18 records.
The tokenization used was from spacy and the format is BILUO instead of BIO and I only have one class which is Org. I modified the get labels function and also verified the model config json file.
Hello,
I built a sample model with only 18 records.
The tokenization used was from spacy and the format is BILUO instead of BIO and I only have one class which is Org. I modified the get labels function and also verified the model config json file.
My labels looks like this,
["O", "B-ORG", "I-ORG", "L-ORG", "U-ORG", "[CLS]", "[SEP]"]
The training goes fine, but validation fails with the following error.
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
06/12/2020 14:07:59 - INFO - main - ***** Running evaluation *****
06/12/2020 14:07:59 - INFO - main - Num examples = 18
06/12/2020 14:07:59 - INFO - main - Batch size = 8
Evaluating: 0%| | 0/3 [00:00<?, ?it/s]
Traceback (most recent call last):
File "run_ner.py", line 594, in
main()
File "run_ner.py", line 582, in main
temp_2.append(label_map[logits[i][j]])
KeyError: 0
I have attached the train and valid files.
Please point me in the right direction.
train.txt
valid.txt
The text was updated successfully, but these errors were encountered: