内容简介:A tool to automatically generate pseudo-code from source code.docker is all you need.
Pseudogen
A tool to automatically generate pseudo-code from source code.
Installation
Using Docker
docker is all you need.
docker attach `docker run -itd delihiros/pseudogen` /# cd pseudogen/data /# ../run-pseudogen.sh -f tune/travatar.ini
Requirements
Requires Python 3.5+
apt install git libboost-all-dev autoconf automake autotools-dev libtool zlib1g-dev cmake build-essential python3 python 3-pip wget -y pip3 install nltk
for Mac OS X users
: GIZA++
is written for Linux, so you may need to do some modifications to install. http://catherinegasnier.blogspot.jp/2014/04/install-giza-107-on-mac-osx-1092.html
git clone https://github.com/delihiros/pseudogen.git cd pseudogen ./tool_setup.sh
Usage
Download and extract corpus from annotated Django source code.
mkdir data cd data wget -O- http://ahclab.naist.jp/pseudogen/en-django.tar.gz | tar zxvf - mv en-django/all.* .
../train-pseudogen.sh -p all.code -e all.anno ../run-pseudogen.sh -f tune/travatar.ini # input Python code you want to translate # in some environments, you may need to press Ctrl+D few times in order to start tranlating
How does Pseudogen work?
Papers
Tools Used
GIZA++ Travatar mteval
Contributors
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
现代操作系统(第3版)
Andrew S. Tanenbaum / 陈向群、马洪兵 / 机械工业出版社 / 2009-7 / 75.00元
本书是操作系统领域的经典之作,与第2版相比,增加了关于Linux、Windows Vista和Symbian操作系统的详细介绍。书中集中讨论了操作系统的基本原理,包括进程、线程、存储管理、文件系统、输入/输出、死锁等,同时还包含了有关计算机安全、多媒体操作系统、掌上计算机操作系统、微内核、多核处理机上的虚拟机以及操作系统设计等方面的内容。此外,还在第2版的基础上对部分习题进行了增删,更有助于读者学......一起来看看 《现代操作系统(第3版)》 这本书的介绍吧!