Check the main Bothub project repository.
Use make commands to lint, init_env, start_development.
| Command | Description |
|---|---|
| make lint | Show lint warnings and errors |
| make init_env | Init file .env with variables environment |
| make start_development | Create .env with variable environment and start build docker |
You can set environment variables in your OS, write on .env file or pass via Docker config.
| Variable | Type | Default | Description |
|---|---|---|---|
| SUPPORTED_LANGUAGES | str | `en | pt` |
| BOTHUB_ENGINE_URL | str | https://api.bothub.it | Web service url |
| BOTHUB_NLP_CELERY_BROKER_URL | str | redis://localhost:6379/0 | Celery Broker URL, check usage instructions in Celery Docs |
| BOTHUB_NLP_CELERY_BACKEND_URL | str | BOTHUB_NLP_CELERY_BROKER_URL value | Celery Backend URL, check usage instructions in Celery Docs |
| BOTHUB_NLP_NLU_AGROUP_LANGUAGE_QUEUE | boolean | True | Agroup tasks by language in celery queue, if True there will be only one queue per language. |
| BOTHUB_NLP_AWS_ACCESS_KEY_ID | str | ||
| BOTHUB_NLP_AWS_SECRET_ACCESS_KEY | str | ||
| BOTHUB_NLP_AWS_S3_BUCKET_NAME | str | ||
| BOTHUB_NLP_AWS_REGION_NAME | str | ||
| BOTHUB_NLP_LANGUAGE_QUEUE | str | en | Set language that will be loaded in celery |
| BOTHUB_NLP_SERVICE_WORKER | boolean | False | Set true if you are running celery bothub-nlp-nlu-worker |
| BOTHUB_NLP_CELERY_SENTRY_CLIENT | bool | False | |
| BOTHUB_NLP_CELERY_SENTRY | str | None |
You need to set --build-arg when you are building docker-compose
| Argument | Type | Default | Description |
|---|---|---|---|
| DOWNLOAD_SPACY_MODELS | string | en:en_core_web_md | Set supported languages. Separe languages using |. You can set location follow the format: [LANGUAGE_CODE]:[LANGUAGE_LOCATION]. |
Content type
Image
Digest
sha256:f27d04b7f…
Size
3.8 GB
Last updated
over 3 years ago
docker pull bothubit/bothub-nlp:0.0.7-develop-ru-SPACY