google/code_x_glue_cc_code_to_code_trans
Viewer • Updated • 11.8k • 577 • 17
How to use lafarizo/code_translation_v1 with Transformers:
# Load model directly
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("lafarizo/code_translation_v1")
model = AutoModelForSeq2SeqLM.from_pretrained("lafarizo/code_translation_v1")Code Translation from Java to C#
| 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 |