/speechli-api

☁️ Speechli API

Primary LanguagePython

Build Status

Speechli API

Install Docker and Docker Compose before continuing.

To run:

docker-compose up -d

To stop:

docker-compose down

To rebuild the project:

docker-compose build

Utilities

To perform a bulk document upload to the Watson Discovery collection (can pass either a directory or a file):

docker-compose run --rm -v <path/to/data>:/tmp/data speechli-api \
    python discovery.py /tmp/data

For example, if you have data locally at /path/to/dir and /path/to/file.json (note that this must be an absolute path):

# If a directory
docker-compose run --rm -v /path/to/dir:/tmp/data speechli-api \
    python discovery.py /tmp/data

# If a file
docker-compose run --rm -v /path/to/file.json:/tmp/data/file.json speechli-api \
    python discovery.py /tmp/data/file.json

Note that the upload process is relatively slow.