Skip to content
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