Git Product home page Git Product logo

translators-test's Introduction

Translators test

Тестирование различных библиотек машинного перевода

Установка зависимостей

  • Python 3.10+
pip install -r requirements.txt

Использование

Посмотреть все команды и аргументы к ним:

python main.py -h

Перевод введённого предложения

> python main.py translate "你好世界" -api google yandex -target en ru

Sentence: 你好世界
--------------------
  Google Translator
  ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  EN - 0.22s:
  Hello World

  RU - 0.22s:
  Привет, мир

--------------------
  Yandex Translator
  ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  EN - 0.27s:
  Hello world

  RU - 0.18s:
  Привет, мир

Перевод названия товара из китайского онлайн-магазина:

> python main.py catalog -p 18 -i 1 -api google -target ru

Sentence: 歌珀莱(GEPORAIS)品牌女装高端提花连衣裙女春季2023年新款收腰气质设计感中长裙子 粉色 M 预售15天
--------------------
  Google Translator
  ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  RU - 0.44s:
  Бренд GEPORAIS, женское жаккардовое платье высокого класса, женская весна 2023, новый дизайн, юбка средней длины с талией и темпераментом, розовый M, предпродажа в течение 15 дней.

translators-test's People

Contributors

viklover 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.