Git Product home page Git Product logo

python_chinese_enlgish_translator's Introduction

Python中文英文离线翻译,中英文离线翻译,中英文翻译

Python Chinese&Enlgish Offline Translator

使用方法 ( 0.如果有需要请创建并使用虚拟环境: python -m venv Translator,进入文件夹 cd Translator,激活虚拟环境 source bin/activate 或者 call scripts/activate.bat 克隆本仓库: git clone xxx )

  1. 使用前解压model文件夹!!!

  2. 使用pip/pip3安装:flask, gevent, transformers, torch, warnings, sentencepiece

  3. 接入方式:POST传输数据到本服务:http://127.0.0.1:5690/report, 详细参见test_cn_en.py 和 test_en_cn.py

How to use:

(Suggest to use Python virtual environment: python -m venv Translator, cd Transalor, source bin/activate or call scripts/activate.bat, git clone xxx)

  1. Unzip the models first!!!

  2. Use pip/pip3 to install: flask, gevent, transformers, torch, warnings, sentencepiece

  3. API requests: post data to http://127.0.0.1:5690/report , check detail in test_cn_en.py and test_en_cn.py

nohup python3 main.py > translator.log 2>&1 &

python_chinese_enlgish_translator's People

Contributors

jacquesvonhamsterviel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

u0251077 mlip-m

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.