# Pseudogen
A tool to automatically generate pseudo-code from source code.
[Demo](http://ahclab.naist.jp/pseudogen/)
## 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 python3-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
+ [Methods - IEEE/ACM ASE 2015](http://www.phontron.com/paper/oda15ase.pdf)
+ [Software - IEEE/ACM ASE 2015](http://www.phontron.com/paper/fudaba15asedemo.pdf)
### Tools Used
+ `GIZA++` to make alignment
+ `Travatar` to train Tree-to-String machine translation model
+ `mteval` to evaluate
## Contributors
+ [Yusuke Oda](http://odaemon.com)
+ [Hiroyuki Fudaba](http://delihiros.jp)
+ [Koichi Akabe](http://isw3.naist.jp/~koichi-a/)
+ [Graham Neubig](http://phontron.com/)
+ [Hideaki Hata](http://isw3.naist.jp/~hata/)
没有合适的资源?快使用搜索试试~ 我知道了~
pseudogen:一种从源代码自动生成伪代码的工具-ps source code
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共15个文件
py:7个
sh:4个
gitignore:1个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
![star](https://csdnimg.cn/release/downloadcmsfe/public/img/star.98a08eaa.png)
温馨提示
假性原 一种从源代码自动生成伪代码的工具。 安装 使用Docker 泊坞窗就是您所需要的。 docker attach `docker run -itd delihiros/pseudogen` /# cd pseudogen/data /# ../run-pseudogen.sh -f tune/travatar.ini 要求 需要Python 3.5+ apt install git libboost-all-dev autoconf automake autotools-dev libtool zlib1g-dev cmake build-essential python3 python3-pip wget -y pip3 install nltk 对于Mac OS X用户: GIZA++是为Linux编写的,因此您可能需要做一些修改才能安装。 git c
资源详情
资源评论
资源推荐
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 15 条
- 1
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![avatar](https://profile-avatar.csdnimg.cn/73427a00aa1c437599187faf2529ffd9_weixin_42100129.jpg!1)
普通网友
- 粉丝: 24
- 资源: 4570
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)
评论2