Git Product home page Git Product logo

usea's People

Contributors

c-simone avatar dfuchss avatar riccorl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

dfuchss

usea's Issues

Exception in WSD container

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

Usea Preprocessing Container Crashes

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?

Docker Image is missing exposed port

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.