Transformers
Safetensors
t5
text2text-generation
code-translation
code-to-code
java
csharp
text-generation-inference
Instructions to use lafarizo/code_translation_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
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") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -25,21 +25,20 @@ Code Translation from Java to C#
|
|
| 25 |
- [Testing Data](https://huggingface.co/datasets/google/code_x_glue_cc_code_to_code_trans/viewer/default/test)
|
| 26 |
|
| 27 |
### Model Evaluation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
-
|
| 30 |
-
| Metric
|
| 31 |
-
|-----------------------
|
| 32 |
-
| **Average BLEU Score**
|
| 33 |
-
| **Average ROUGE-1 Score** | 0.
|
| 34 |
-
| **Average ROUGE-2 Score** | 0.
|
| 35 |
-
| **Average ROUGE-L Score** | 0.
|
| 36 |
-
| **Exact Match Accuracy**
|
| 37 |
-
|
| 38 |
-
### After Fine Tuning
|
| 39 |
-
| Metric | Score |
|
| 40 |
-
|-----------------------|-------------------|
|
| 41 |
-
| **Average BLEU Score** | 0.8833 |
|
| 42 |
-
| **Average ROUGE-1 Score** | 0.9368 |
|
| 43 |
-
| **Average ROUGE-2 Score** | 0.9027 |
|
| 44 |
-
| **Average ROUGE-L Score** | 0.9344 |
|
| 45 |
-
| **Exact Match Accuracy** | 0.6800 |
|
|
|
|
| 25 |
- [Testing Data](https://huggingface.co/datasets/google/code_x_glue_cc_code_to_code_trans/viewer/default/test)
|
| 26 |
|
| 27 |
### Model Evaluation
|
| 28 |
+
Before Fine Tuning
|
| 29 |
+
| Metric | Score |
|
| 30 |
+
|---------------------------|-----------|
|
| 31 |
+
| **Average BLEU Score** | 0.0116 |
|
| 32 |
+
| **Average ROUGE-1 Score** | 0.0201 |
|
| 33 |
+
| **Average ROUGE-2 Score** | 0.0009 |
|
| 34 |
+
| **Average ROUGE-L Score** | 0.0201 |
|
| 35 |
+
| **Exact Match Accuracy** | 0.0000 |
|
| 36 |
|
| 37 |
+
After Fine Tuning
|
| 38 |
+
| Metric | Score |
|
| 39 |
+
|---------------------------|-----------|
|
| 40 |
+
| **Average BLEU Score** | 0.8833 |
|
| 41 |
+
| **Average ROUGE-1 Score** | 0.9368 |
|
| 42 |
+
| **Average ROUGE-2 Score** | 0.9027 |
|
| 43 |
+
| **Average ROUGE-L Score** | 0.9344 |
|
| 44 |
+
| **Exact Match Accuracy** | 0.6800 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|