duydvu / Scalable-VnCoreNLP

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:GNU General Public License v3.0


Languages

Language:Dockerfile 100.0%