Skip to main content

TransCoder Package

This is a library implementation of the infamous Transcoder model Unsupervised Translation of Programming Languages Model

Usage

Installation

Create a virtual environment and activate it:

virtualenv venv --python=python3.8
source venv/bin/activate

Install library

pip install transcode

If your libclang.so is not in /usr/lib/llvm-10/lib/, replace the path to libclang.so to the correct path in clang.cindex.Config.set_library_path('path_to_libclang') in code_tokenizer.py

Translate

Just provide the target and source langauges and the code, and we handle the rest 😉

translate --src_lang python --tgt_lang java < input_code.cpp

Train or Evaluate

To train or evaluate the model, please refer to the original repository.

Metadata

Release files for transcode 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for transcode 1.2.0
File Size Uploaded Provenance Actions
transcode-1.2.0.tar.gz 81.1 kB Without provenance Details for transcode-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for transcode 1.2.0
File Interpreter ABI Platform Actions
transcode-1.2.0-py3-none-any.whl Python 3 none any Details for transcode-1.2.0-py3-none-any.whl

Total release size: 175.8 kB

Release files / transcode-1.2.0.tar.gz

Download URL transcode-1.2.0.tar.gz
Size 81.1 kB
Tags Source
SHA-256 checksum
How to use checksums
50d3bfb4ad7e9dda85f5a042a7837f2283ad521363f361868e0b18984848e334
BLAKE2b-256 checksum
How to use checksums
12d603c0973f04d9412016ea3d24e30174f708c8516d2df93cc3b81d5e3e077b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.17

Release files / transcode-1.2.0-py3-none-any.whl

Download URL transcode-1.2.0-py3-none-any.whl
Size 94.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
026d314fef42e169355b3fc6ced095aa701420dc39d17127953e472ac6bc92f6
BLAKE2b-256 checksum
How to use checksums
2d74ed0a800caadaa11fa926694943c4ed9ac48deb4a7c2eb55b2cfbc17de976
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.17

Security for transcode 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page