The NER predictions (in terms of tags) on the Jack Sparrow example are odd and don't match those from the book. They also change each time you re-run all the code above. The tokenization looks fine so the issue seems to be coming from the model itself.
Bug encountered locally and in Google colab.
To Reproduce
Steps to reproduce the behavior:
Open 04_multilingual-ner.ipynb in Colab
Run all the cells up to #115 (included)
Check the output of cell 115
Expected behavior
I was expecting to get relevant tags as found in the book for cell 115 ie. [O I-LOC B-LOC B-LOC O I-LOC O O I-LOC B-LOC].
Information
The problem arises in chapter:
Describe the bug
The NER predictions (in terms of tags) on the Jack Sparrow example are odd and don't match those from the book. They also change each time you re-run all the code above. The tokenization looks fine so the issue seems to be coming from the model itself. Bug encountered locally and in Google colab.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I was expecting to get relevant tags as found in the book for cell 115 ie. [O I-LOC B-LOC B-LOC O I-LOC O O I-LOC B-LOC].