Commit 1577fdcf authored by Leszek Szymczak's avatar Leszek Szymczak

Update info.json, src/omwn_worker.py, docker-compose.yml files

parent 8fe8c8ce
Pipeline #932 passed with stage
in 33 seconds
......@@ -15,3 +15,4 @@ services:
- './config.ini:/home/worker/config.ini'
- './src:/home/worker/src'
- './main.py:/home/worker/main.py'
- './info.json:/home/worker/info.json'
......@@ -11,8 +11,6 @@ my_logger = logging.getLogger(__name__)
_log = logging.getLogger(__name__)
languages = {"pl": "pol", "en": "eng", "es": "spa"}
nltk.download('wordnet')
nltk.download('omw')
class OMWNWorker(lex_ws.LexWorker):
......@@ -69,7 +67,7 @@ class OMWNWorker(lex_ws.LexWorker):
return {}
elif function_type == "getInfo":
with open("src/info.json", "rt", encoding="utf8") as f:
with open("info.json", "rt", encoding="utf8") as f:
response = json.load(f)
# response = json.dumps(response)
return response
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment