Sign inSign up

bothubit/bothub-nlp

By bothubit

•Updated over 3 years ago

Image
0

100K+

bothubit/bothub-nlp repository overview

⁠Bothub NLP - Natural Language Processing services

Build Status Coverage Status version 3.0.1 python 3.6 license AGPL-3.0

Check the main Bothub project repository⁠.

⁠Services

⁠bothub-nlp-nlu-worker

⁠Packages

⁠bothub-nlp (python 3.6)
⁠bothub-nlp-celery (python 3.6)
⁠bothub-nlp-nlu (python 3.6)

⁠Requirements

  • Python (3.6)
  • Docker
  • Docker-Compose

⁠Development

Use make commands to lint, init_env, start_development.

CommandDescription
make lintShow lint warnings and errors
make init_envInit file .env with variables environment
make start_developmentCreate .env with variable environment and start build docker

⁠Environment Variables

You can set environment variables in your OS, write on .env file or pass via Docker config.

VariableTypeDefaultDescription
SUPPORTED_LANGUAGESstr`enpt`
BOTHUB_ENGINE_URLstrhttps://api.bothub.itWeb service url
BOTHUB_NLP_CELERY_BROKER_URLstrredis://localhost:6379/0 Celery Broker URL, check usage instructions in Celery Docs
BOTHUB_NLP_CELERY_BACKEND_URLstrBOTHUB_NLP_CELERY_BROKER_URL valueCelery Backend URL, check usage instructions in Celery Docs⁠
BOTHUB_NLP_NLU_AGROUP_LANGUAGE_QUEUEbooleanTrueAgroup tasks by language in celery queue, if True there will be only one queue per language.
BOTHUB_NLP_AWS_ACCESS_KEY_IDstr
BOTHUB_NLP_AWS_SECRET_ACCESS_KEYstr
BOTHUB_NLP_AWS_S3_BUCKET_NAMEstr
BOTHUB_NLP_AWS_REGION_NAMEstr
BOTHUB_NLP_LANGUAGE_QUEUEstrenSet language that will be loaded in celery
BOTHUB_NLP_SERVICE_WORKERbooleanFalseSet true if you are running celery bothub-nlp-nlu-worker
BOTHUB_NLP_CELERY_SENTRY_CLIENTboolFalse
BOTHUB_NLP_CELERY_SENTRYstrNone

⁠Docker Arguments

You need to set --build-arg when you are building docker-compose

ArgumentTypeDefaultDescription
DOWNLOAD_SPACY_MODELSstringen:en_core_web_mdSet supported languages. Separe languages using |. You can set location follow the format: [LANGUAGE_CODE]:[LANGUAGE_LOCATION].

Tag summary

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