Giter Site home page Giter Site logo

youthlab / zeromq_nlp_service Goto Github PK

View Code? Open in Web Editor NEW

This project forked from serbipunk/zeromq_nlp_service

0.0 1.0 0.0 4.16 MB

A Chinese Webpage Title Text Categorization Tool 中文网页标题分类工具(短文本分类) pure c/c++ version: https://github.com/MagnusBai/webpage_categorization

Makefile 0.05% C++ 3.16% C 96.69% Python 0.10%

zeromq_nlp_service's Introduction

a NLP service powered by ZEROMQ

NLP programs have to load tons of math models. It's a good choice to separate NLP program from web-service-infrastructure.

We compare the C++ NLP module as the Worker to the Python control module as the Leader. The Leader arranges for the Worker to do its job and collects its achievement.

While the process loop between Leader and Worker is synchronous, you can use Secretary assistant-python-script for making asynchronous calls to Worker.


dependency

  • protobuf and python-protobuf

  • Zeromq and pyzmq


deploy this service

All shells should be run at $(zeromq_nlp_service) directory.

1. start Worker service

./build/bin/Worker

2. run synchronized Leader script

python ./build/bin/Leader_synchronous.py

3. run asynchronized Leader script

3.1 Secretary service should be deployed at first.

python build/bin/Secretary_asynchronous.py

3.2 run asynchronized Leader script

python build/bin/Leader_asynchronous.py

zeromq_nlp_service's People

Contributors

romantic668 avatar serbipunk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.