Giter Club home page Giter Club logo

gpt_translate's Introduction

PyPI version

gpt_translate: Translating MD files with GPT-4

This is a tool to translate the language in Markdown files.

You will need and OpenAI API key to use this tool.

Installation

We have a stable version on PyPi, so you can install it with pip:

$ pip install gpt-translate

or to get latest version from the repo:

$ cd gpt_translate
$ pip install .

Usage

We use GPT4 by default. You can change this on configs/model_config.yaml

You can add new languages by providing the language translation dictionaries in configs/language_dicts

To translate a single file:

$ gpt_translate.file README.md README_es_.md --language es

to translate a full folder recursively:

$ gpt_translate.folder docs docs_ja --language ja

If you don't know what to do, you can always do:

$ gpt_translate --help

TroubleShooting

If you have any trouble with the installation, you can always pass the --debug flag to get more information about what is happening:

$ gpt_translate.folder docs docs_ja --language ja --debug

this will get you a very verbose output (calls to models, inputs and outputs, etc.)

gpt_translate's People

Contributors

tcapelle avatar

Stargazers

Scott Condron avatar unipus-ai avatar Eugene Ware avatar Shokroc avatar  avatar Zichao Yang avatar Noah Luna avatar matthew p robertson avatar

Watchers

 avatar Kostas Georgiou avatar

Forkers

mpr1255 lm-ubunye

gpt_translate's Issues

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.