Proxy image for the Universal Semantic Annotator (USeA) service.
463
Universal Semantic Annotator (USeA) is the first unified API for three primary tasks in Natural Language Understanding (NLU):
The main motivations behind USeA are manifold: i) the creation of an easy-to-use tool and service for the automatic annotation of explicit semantic knowledge in 100 languages, ii) enabling the use of explicit semantics in multilingual and cross-lingual real-world applications, iii) the democratization of state-of-the-art systems that would otherwise require expert knowledge of the field for their development and implementation, and last but not least iv) fostering further research in NLU and other fields on the interplay between semantics and other modalities, e.g., computer vision, speech recognition, video understanding.
This repo is for the Docker image of the USeA service proxy. This image takes care of:
usea-preprocessing, usea-wsd, usea-srl, and usea-amr (soon to be released).usea-service containerMake sure you have installed docker before proceeding, then run the following command:
docker run --name usea-service -p 8000:8000 usea-service
If you want to run the container in the background, simply use the flag -d as follows:
docker run -d --name usea-service -p 8000:8000 usea-service
If everything went well, the service will become available at localhost:8000/process.
You can check that everything is fine with the following Python script:
import requests
import json
text = "La volpe veloce salta sopra il cane pigro."
response = requests.post(
"http://localhost:8000/process", json={"type": "text", "content": text}
)
print(json.dumps(response.json(), indent=2))
By default, the proxy image sends the requests to our online servers. You can specify the URL of the preprocessing, WSD, SRL and AMR parsing enpoints to point to your own (local) instances, as follows:
BASE_HOST=https://nlp.uniroma1.it/usea
PREPROCESSING_ENDPOINT="$BASE_HOST"/preprocessing
WSD_ENDPOINT="$BASE_HOST"/wsd
SRL_ENDPOINT="$BASE_HOST"/srl
AMR_ENDPOINT="$BASE_HOST"/amr
docker run --name usea-service -p 8000:8000 usea-service \
-e PREPROCESSING_ENDPOINT=$PREPROCESSING_ENDPOINT \
-e WSD_ENDPOINT=$WSD_ENDPOINT \
-e SRL_ENDPOINT=$SRL_ENDPOINT \
-e AMR_ENDPOINT=$AMR_ENDPOINT
Simply run:
docker stop usea-service
If you also want to remove the container:
docker stop usea-service
docker rm usea-service
The authors gratefully acknowledge the support of the European Language Grid project No. 825627 (Universal Semantic Annotator, USeA) under the European Union’s Horizon 2020 research and innovation programme.
This work is under the Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) license.
Content type
Image
Digest
Size
204.1 MB
Last updated
over 4 years ago
docker pull sapienzanlp/usea-service