Loading repository data…
Loading repository data…
richawo / repository
Translate Markdown files from one language to another using OpenAI's API while retaining original formatting. This Jupyter notebook tokenizes input text, splits into chunks, translates with OpenAI, and reconstructs output to preserve Markdown structure. Useful for localizing documentation, articles, books, and other long-form Markdown content.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This project provides a tool for translating Markdown documents from one language to another using OpenAI's API. It tokenizes the input document, splits it into chunks, translates each chunk, and stitches the output back together to retain the original formatting.
To use this translation workflow:
pip install -r requirements.txt
input_path variableinput_language and output_languageThe main configuration options are:
input_path - Path to input fileinput_language - Source language codeoutput_language - Target language codesplit_string - String used to split input into chunksThis can be used to translate Plain Text/Markdown docs like:
MIT