Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,33 @@ and [java](https://github.com/tree-sitter/tree-sitter-java).
`prepare_data.sh`.
2. Concatenate the vectors created in the previous step to the original sequence, resulting in the
data that is used for training, by running `preprocess_data.sh`.
3. Finally, run `finetuneT5[unique].sh` to start training the model. This step uses the instructions as
3. Finally, run `run.sh` (found in CodeT5/sh) to start training the model. This step uses the instructions as
described by codeXGLUE.

## Results

Java to C#:
| Method | BLEU | Acc (100%) | [CodeBLEU](https://github.com/microsoft/CodeXGLUE/blob/main/Code-Code/code-to-code-trans/CodeBLEU.MD) |
| ---------- | :--------: | :-------: | :-------: |
| Naive copy | 18.54 | 0.0 | - |
| PBSMT | 43.53 | 12.5 | 42.71 |
| Transformer | 55.84 | 33.0 | 63.74 |
| Roborta (code) | 77.46 | 56.1 | 83.07 |
| CodeBERT | **79.92** | **59.0** | **85.10** |
| CodeBERT + T5 | | | |
| CodeBERT + T5Unique | | | |
| Baseline | 12.44 | 0 | - |
| CodeBERT + T5 | 0 | 0 | - |
| CodeBERT + T5Unique | 0 | 0 | - |

C# to Java:

C# to Java:
| Method | BLEU | Acc (100%) | [CodeBLEU](https://github.com/microsoft/CodeXGLUE/blob/main/Code-Code/code-to-code-trans/CodeBLEU.MD) |
| ---------- | :--------: | :-------: | :-------: |
| Naive copy | 18.69 | 0.0 | - |
| PBSMT | 40.06 | 16.1 | 43.48 |
| Transformer | 50.47 | 37.9 | 61.59 |
| Roborta (code) | 71.99 | 57.9 | **80.18** |
| CodeBERT | **72.14** | **58.0** | 79.41 |
| CodeBERT + T5 | | | |
| CodeBERT + T5Unique | | | |
| Baseline | 12.14 | 4.41 | - |
| CodeBERT + T5 | 0 | 0.4 | - |
| CodeBERT + T5Unique | 0 | 1.4 | - |