|
--- |
|
title: "Code Translation v1" |
|
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 v1 |
|
Code Translation from Java to C# |
|
|
|
### Base Model |
|
- **Repository:** [michaelnath/dummy_code_to_code_model](https://huggingface.co/michaelnath/dummy_code_to_code_model) |
|
|
|
### 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 | |
|
|------------------------------------------|--------------------|-------------------| |
|
| **BLEU Score** | 1.18% | 87.82% | |
|
| **ROUGE-1 Score** | 2.55% | 93.87% | |
|
| **ROUGE-2 Score** | 0.56% | 90.17% | |
|
| **ROUGE-L Score** | 2.55% | 63% | |
|
| **Exact Match Accuracy** | 0% | 0.6800 | |
|
| **Mutation-Based Translation Score** | 1 | 0.318 | |
|
|