Packing transcoder model
Project description
TransCoder Package
This is a library implementation of the infamous Transcoder model Unsupervised Translation of Programming Languages
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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
transcode-1.2.0-py3-none-any.whl
(94.7 kB
view hashes)
Close
Hashes for transcode-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 026d314fef42e169355b3fc6ced095aa701420dc39d17127953e472ac6bc92f6 |
|
MD5 | 8a351f2e886eb54b3675d506703000da |
|
BLAKE2b-256 | 2d74ed0a800caadaa11fa926694943c4ed9ac48deb4a7c2eb55b2cfbc17de976 |