From a2e5561bb223370537f51bc6b712adfd7c4bfc9c Mon Sep 17 00:00:00 2001 From: Paul Oldham Date: Tue, 22 Sep 2020 17:52:49 +0100 Subject: [PATCH] Update README.md Minor typo. docker run on line 56 sets up on port 8080 but in the examples below (except for compose) is given as 8000. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ea53031..bca4c88 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ Example request using the Python [Requests library](http://docs.python-requests. import json import requests -url = "http://localhost:8000/dep" +url = "http://localhost:8080/dep" message_text = "They ate the pizza with anchovies" headers = {'content-type': 'application/json'} d = {'text': message_text, 'model': 'en'} @@ -180,7 +180,7 @@ Example response: Curl command: ``` -curl -s localhost:8000/dep -d '{"text":"Pastafarians are smarter than people with Coca Cola bottles.", "model":"en"}' +curl -s localhost:8080/dep -d '{"text":"Pastafarians are smarter than people with Coca Cola bottles.", "model":"en"}' ``` ```json @@ -280,7 +280,7 @@ Example request using the Python [Requests library](http://docs.python-requests. import json import requests -url = "http://localhost:8000/ent" +url = "http://localhost:8080/ent" message_text = "When Sebastian Thrun started working on self-driving cars at Google in 2007, few people outside of the company took him seriously." headers = {'content-type': 'application/json'} d = {'text': message_text, 'model': 'en'} @@ -306,7 +306,7 @@ Example response: | `type` | string | entity type | ``` -curl -s localhost:8000/ent -d '{"text":"Pastafarians are smarter than people with Coca Cola bottles.", "model":"en"}' +curl -s localhost:8080/ent -d '{"text":"Pastafarians are smarter than people with Coca Cola bottles.", "model":"en"}' ``` ```json @@ -350,7 +350,7 @@ Example request using the Python [Requests library](http://docs.python-requests. import json import requests -url = "http://localhost:8000/sents" +url = "http://localhost:8080/sents" message_text = "In 2012 I was a mediocre developer. But today I am at least a bit better." headers = {'content-type': 'application/json'} d = {'text': message_text, 'model': 'en'} @@ -391,7 +391,7 @@ Example request using the Python [Requests library](http://docs.python-requests. import json import requests -url = "http://localhost:8000/sents_dep" +url = "http://localhost:8080/sents_dep" message_text = "In 2012 I was a mediocre developer. But today I am at least a bit better." headers = {'content-type': 'application/json'} d = {'text': message_text, 'model': 'en'}