Skip to content

Commit 19fc9a4

Browse files
committed
codesum readme
1 parent 9554e1e commit 19fc9a4

File tree

4 files changed

+22
-19
lines changed

4 files changed

+22
-19
lines changed

CodeSummarization/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Dataset link:
2+
3+
Data source: https://drive.google.com/file/d/14nHVljNMb37-tpOW59NaDY26T6z2BcXD/view?usp=sharing
4+
5+
## training procedure
6+
1. Download the data source from above link. Then extract the zip file inside data/java.
7+
2. Start training from scripts/java/transformer.sh
8+
run this command
9+
```bash
10+
transformer.sh 0 CoDescSum
11+
```
12+
3. After two epoch terminate the terminal.
13+
4. Rename 'train' folder to 'pretrain' and rename 'finetune' to 'train'
14+
5. Run this again
15+
```bash
16+
transformer.sh 0 CoDescSum
17+
```

CodeSummarization/data/README.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Then the following commands will train and test code search networks:
109109
```
110110

111111
# Code Summarization
112-
We used the original implementation of Code Summarization of [NeuralCodeSum](https://github.com/wasiahmad/NeuralCodeSum.git). Please refer to [this guide](https://github.com/code-desc/CoDesc/blob/master/CodeSummarization/data/README.md) for instructions on how to train the code summarization network.
112+
We used the original implementation of Code Summarization of [NeuralCodeSum](https://github.com/wasiahmad/NeuralCodeSum.git). Please refer to [this guide](https://github.com/code-desc/CoDesc/blob/master/CodeSummarization/README.md) for instructions on how to train the code summarization network.
113113

114114

115115
# Licenses

Setup/setup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ pip install numpy
1313
pip install jsonlines
1414
pip install javalang
1515
pip install transformers
16+
pip install tqdm
17+
pip install nltk
18+
pip install prettytable
19+
pip install torch==1.5.1
1620

1721
# download dataset
1822
mkdir data/

0 commit comments

Comments
 (0)