Skip to content

Fixed the Dockerfile so the build would be successful and updated the README file. #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.12-buster

RUN apt update && apt install bzip2
RUN apt update && apt install -y bzip2

RUN mkdir -p /yap/src
COPY . /yap/src/yap
Expand All @@ -9,6 +9,8 @@ ENV GOPATH=/yap
WORKDIR /yap/src/yap

RUN bunzip2 data/*.bz2

ENV GIT_SSL_NO_VERIFY=1
RUN go get .
RUN go build .

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,17 @@ $

When sending the request from a Python client, try using this code:
```python
from pprint import pprint
import requests
impot json
import json

text = 'גנן גידל דגן בגן'
localhost_yap = "http://localhost:8000/yap/heb/joint"
data = json.dumps({'text': "{} ".format(text)}) # input string ends with two space characters
headers = {'content-type': 'application/json'}
response = requests.get(url=localhost_yap, data=data, headers=headers)
json_response = response.json()
pprint(json_response)
```

## Joint vs Pipeline
Expand Down