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 encountered the following error with a fully local deployment through docker-compose:
File "/elg/usea_service/app.py", line 165, in wsd_response_handler
for word in data["tokens"]:
└ {'detail': "Server Error: 'Word' object has no attribute 'start_char'"}
By entering the wsd container and looking through the python code, the issue is located /app/sapienzanlp/predictors/wsd.py, starting line 305. The WsdWord dataclass is instanciated for each Word instance, and it appears that Word (and thus WsdWord its subclass) no longer has the start_char/end_char attributes.
By removing the two parameters and restarting the container the issue went away. This would be easy to fix in the next release of the WSD image on docker hub. The issue does not occur in the online demo API so it must have been fixed there
The text was updated successfully, but these errors were encountered:
Dear developers,
I encountered the following error with a fully local deployment through docker-compose:
File "/elg/usea_service/app.py", line 165, in wsd_response_handler
for word in data["tokens"]:
└ {'detail': "Server Error: 'Word' object has no attribute 'start_char'"}
By entering the wsd container and looking through the python code, the issue is located /app/sapienzanlp/predictors/wsd.py, starting line 305. The WsdWord dataclass is instanciated for each Word instance, and it appears that Word (and thus WsdWord its subclass) no longer has the start_char/end_char attributes.
By removing the two parameters and restarting the container the issue went away. This would be easy to fix in the next release of the WSD image on docker hub. The issue does not occur in the online demo API so it must have been fixed there
The text was updated successfully, but these errors were encountered: