sapienzanlp / usea Goto Github PK
View Code? Open in Web Editor NEWUniversal Semantic Annotator (LREC 2022)
Universal Semantic Annotator (LREC 2022)
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
I'm currently trying to run usea locally.
Unfortunately, the preprocessing container crashes:
__ __ _____ ___
/ / / / / ___/ ___ / |
/ / / / \__ \ / _ \ / /| |
/ /_/ / ___/ / / __/ / ___ |
\____/ /____/ \___/ /_/ |_|
Universal Semantic Annotator: A Unified API for Multilingual WSD, SRL and AMR annotations
Preprocessing Module
Killed
Sapienza NLP group
Downloading resources...
__ __ _____ ___
/ / / / / ___/ ___ / |
/ / / / \__ \ / _ \ / /| |
/ /_/ / ___/ / / __/ / ___ |
\____/ /____/ \___/ /_/ |_|
Universal Semantic Annotator: A Unified API for Multilingual WSD, SRL and AMR annotations
Preprocessing Module
Sapienza NLP group
Downloading resources...
Do you have any idea how to fix this?
After looking to your docker file sapienzanlp/usea-service:1.0.2
, I've recognized that your docker image does not expose the API port (at least it's not declared).
I would suggest to add EXPOSE 8000
to your docker image. Then the port to be used is clear.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.