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
But when I type on the console and press enter it throws the following error.
he walked the dog
Traceback (most recent call last):
File "/home/irfan/PycharmProjects/disambiguate/python/getalp/wsd/predict.py", line 31, in<module>main()
File "/home/irfan/PycharmProjects/disambiguate/python/getalp/wsd/predict.py", line 27, in main
predicter.predict(text)
File "/home/irfan/PycharmProjects/disambiguate/python/getalp/wsd/predicter.py", line 67, in predict
self.predict_and_output(ensemble, batch_x, batch_z, self.data_config.input_clear_text)
File "/home/irfan/PycharmProjects/disambiguate/python/getalp/wsd/predicter.py", line 104, in predict_and_output
batch_wsd = Predicter.generate_wsd_on_batch(output_wsd, batch_z)
File "/home/irfan/PycharmProjects/disambiguate/python/getalp/wsd/predicter.py", line 166, in generate_wsd_on_batch
batch_wsd.append(Predicter.generate_wsd_on_sample(output[i], batch_z[0][i]))
IndexError: index 1 is out of bounds for dimension 0 with size 1
Process finished with exit code 1
Is there a way to use the model in Python script. I'm trying to do it but having lots of errors with modules importing etc.
The text was updated successfully, but these errors were encountered: