jayavardhanr / End-to-end-Sequence-Labeling-via-Bi-directional-LSTM-CNNs-CRF-Tutorial

Tutorial for End-to-end Sequence Labeling via Bi-directional LSTM-CNNs-CRF
121 stars 71 forks source link

fixed a syntax error #5

Open rogerchen2020 opened 4 years ago

rogerchen2020 commented 4 years ago

IndexError: invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number