Skip to content

BOUN-TABILab-TULAP/RELX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to run using Docker

  1. Clone the repo
git clone https://github.com/BOUN-TABILab-TULAP/RELX.git
  1. Launch a terminal in the root directory of the repo and build the Docker image where
  • -t is the tag for the Docker image. You can provide any name you want
  • . is the relative path to the Dockerfile
docker build -t relx .
  1. Run the Docker image where
  • -d indicates "detach", let the container run in the background
  • -p 5000:5000 indicates mapping port 5000 of the container to the port 5000 of the host.
docker run -d -p 5000:5000 relx
  1. Send a POST request
  • via curl
    curl -X POST http://localhost:5000/evaluate 
    -H 'Content-Type: application/json' 
    -d '{"textarea":"<e1> Hoyte </e1> , <e2> Guyana </e2> ’nın başkenti Georgetown’da doğdu."}'
    
    > {'text': 'per:country_of_birth(e1,e2)'}
  • via Python's requests library
    import requests
    res = requests.post('http://localhost:5000/evaluate', json={'textarea':'<e1> Hoyte </e1> , <e2> Guyana </e2> ’nın başkenti Georgetown’da doğdu.'})
    print(res.json())
    
    > {'text': 'per:country_of_birth(e1,e2)'}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published