Sign inSign up

bothubit/bothub-nlp-api

By bothubit

•Updated over 1 year ago

Image
0

10K+

bothubit/bothub-nlp-api repository overview

⁠Bothub NLP - Natural Language Processing services

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

Check the main Bothub project repository⁠.

⁠Services

⁠bothub-nlp-api

⁠Packages

⁠bothub-nlp (python 3.6)
⁠bothub-nlp-celery (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

VariableTypeDefaultDescription
ENVIRONMENTstrproduction
BOTHUB_NLP_API_HOSTstr0.0.0.0Web service ip
BOTHUB_NLP_API_PORTint2657Web service port
BOTHUB_NLP_SENTRY_CLIENTboolNoneEnable Sentry Client
BOTHUB_NLP_SENTRYstrNoneSentry Client URL
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_API_WORKERS_PER_COREint3
BOTHUB_NLP_API_WEB_CONCURRENCYintNone
BOTHUB_NLP_API_LOG_LEVELstrinfo
BOTHUB_NLP_API_KEEPALIVEint120
BOTHUB_SERVICE_TRAINstrcelery
BOTHUB_GOOGLE_PROJECT_IDintNone
BOTHUB_GOOGLE_CREDENTIALS_REFRESH_TOKENstrNone
BOTHUB_GOOGLE_CREDENTIALS_TOKEN_URIstrNone
BOTHUB_GOOGLE_CREDENTIALS_CLIENT_IDstrNone
BOTHUB_GOOGLE_CREDENTIALS_CLIENT_SECRETstrNone
BOTHUB_GOOGLE_AI_PLATFORM_IMAGE_VERSIONstr1.0.0
BOTHUB_GOOGLE_AI_PLATFORM_REGISTRYstrus.gcr.io/bothub/bothub-nlp-ai-platform
BOTHUB_GOOGLE_AI_PLATFORM_PACKAGE_URIlist["gs://poc-training-ai-platform/bothub-nlp-ai-platform/bothub-nlp-ai-platform-0.1.tar.gz"]

Tag summary

Content type

Image

Digest

sha256:66c33f1ec…

Size

401.3 MB

Last updated

over 1 year ago

docker pull bothubit/bothub-nlp-api:3.6.3-staging-alpha1