Fast tokenizers in the QA pipeline (TensorFlow) numpy error
hi,i think in chapter 6, Fast tokenizers in the QA pipeline (TensorFlow) , beforescores = np.triu(scores) , there should be import numpy as np .Thanks
2022-05-25T19:09:45Z
and also i think finding the start and end indexes would be better withindex_stend = np.unravel_index(np.argmax(scores, axis=None), scores.shape)instead ofstart_index = max_index // scores.shape[1]end_index = max_index % scores.shape[1]
2022-05-25T19:10:44Z
Thanks for reporting! A fix is here:Add missing numpy import by lewtun · Pull Request #217 · huggingface/course · GitHub