Skip to main content

Packing transcoder model

Project description

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 :wink:

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transcode-1.2.0.tar.gz (81.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

transcode-1.2.0-py3-none-any.whl (94.7 kB view details)

Uploaded Python 3

File details

Details for the file transcode-1.2.0.tar.gz.

File metadata

  • Download URL: transcode-1.2.0.tar.gz
  • Upload date:
  • Size: 81.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.17

File hashes

Hashes for transcode-1.2.0.tar.gz
Algorithm Hash digest
SHA256 50d3bfb4ad7e9dda85f5a042a7837f2283ad521363f361868e0b18984848e334
MD5 e96d9b0e1e085f7a4f633171a3e2ccab
BLAKE2b-256 12d603c0973f04d9412016ea3d24e30174f708c8516d2df93cc3b81d5e3e077b

See more details on using hashes here.

File details

Details for the file transcode-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: transcode-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 94.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.17

File hashes

Hashes for transcode-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 026d314fef42e169355b3fc6ced095aa701420dc39d17127953e472ac6bc92f6
MD5 8a351f2e886eb54b3675d506703000da
BLAKE2b-256 2d74ed0a800caadaa11fa926694943c4ed9ac48deb4a7c2eb55b2cfbc17de976

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page