|
--- |
|
title: "Code Translation v3" |
|
tags: |
|
- code-translation |
|
- code-to-code |
|
- java |
|
- csharp |
|
library_name: "transformers" |
|
datasets: |
|
- google/code_x_glue_cc_code_to_code_trans |
|
widget: |
|
- text: "public class HelloWorld { public static void main(String[] args) { System.out.println(\"Hello, World!\"); } }" |
|
--- |
|
|
|
# Code Translation v3 |
|
Code Translation from Java to C# |
|
|
|
### Model Sources |
|
- **Repository:** [uclanlp/plbart-base](https://huggingface.co/uclanlp/plbart-base) |
|
|
|
### Dataset |
|
- **Repository:** [google/code_x_glue_cc_code_to_code_trans](https://huggingface.co/datasets/google/code_x_glue_cc_code_to_code_trans) |
|
|
|
### Testing Data |
|
- [Testing Data](https://huggingface.co/datasets/google/code_x_glue_cc_code_to_code_trans/viewer/default/test) |
|
|
|
| Metric | Pre-Trained | Fine Tuned | |
|
|-------------------------- |--------------------|-------------------| |
|
| **Average BLEU Score** | 0.3855 | 0.8682 | |
|
| **Average ROUGE-1 Score** | 0.5994 | 0.9311 | |
|
| **Average ROUGE-2 Score** | 0.4474 | 0.8749 | |
|
| **Average ROUGE-L Score** | 0.5914 | 0.9254 | |
|
| **Exact Match Accuracy** | 0.0000 | 0.5800 | |