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.1.0.tar.gz
(80.9 kB
view hashes)
Built Distribution
transcode-1.1.0-py3-none-any.whl
(94.5 kB
view hashes)
Close
Hashes for transcode-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6861ef18db75f8de598d05a3c7e4397e6e60004089f4660b85d122f8fddb49d |
|
MD5 | 610be9d7c25801373cc3c87ccbe5ce34 |
|
BLAKE2b-256 | 3ac7b22bc9f3fff12f6e2cf2d8adf2c626dc1f5db9c4b14f8a8c725327de3029 |