Skip to content

Easily increase the capacity of the VnCoreNLP service to handle huge dataset.

License

Notifications You must be signed in to change notification settings

duydvu/Scalable-VnCoreNLP

Repository files navigation

Scalable VnCoreNLP

Easily increase the capacity of the VnCoreNLP service to handle huge dataset.

Only support for word segmenter.

Requirements

  • Docker.
  • Docker Compose.
  • Python with vncorenlp preinstalled.

Get Started

  1. Clone this repository.
git clone https://github.com/duydvu/Scalable-VnCoreNLP.git
cd Scalable-VnCoreNLP
  1. Build the Docker image:
docker-compose build
  1. Start the service with 4 instance:
docker-compose up --scale vncorenlp=4
  1. Connect to the service:
from vncorenlp import VnCoreNLP

wordsegmenter = VnCoreNLP('http://localhost', 8000)
wordsegmenter.tokenize('hôm nay tôi đi học')

About

Easily increase the capacity of the VnCoreNLP service to handle huge dataset.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published