Update README.md
Browse files
README.md
CHANGED
@@ -5,7 +5,7 @@ This is a fine-tuned version of [Salesforce/CodeT5-base](https://huggingface.co/
|
|
5 |
|
6 |
---
|
7 |
|
8 |
-
|
9 |
|
10 |
**BLEU Score:** 0.4506
|
11 |
- 1-gram: 0.6698
|
@@ -23,7 +23,7 @@ This is a fine-tuned version of [Salesforce/CodeT5-base](https://huggingface.co/
|
|
23 |
|
24 |
---
|
25 |
|
26 |
-
|
27 |
|
28 |
```python
|
29 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
@@ -35,13 +35,14 @@ vb_code = "Dim x As Integer = 5"
|
|
35 |
inputs = tokenizer(f"translate VB.NET to C#: {vb_code}", return_tensors="pt")
|
36 |
outputs = model.generate(**inputs)
|
37 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
|
|
38 |
|
39 |
-
|
40 |
|
41 |
Training data was in JSONL with fields:
|
42 |
"vb_code": VB.NET input
|
43 |
"csharp_code": corresponding C# output
|
44 |
|
45 |
-
|
46 |
|
47 |
MIT
|
|
|
5 |
|
6 |
---
|
7 |
|
8 |
+
# π Evaluation Metrics
|
9 |
|
10 |
**BLEU Score:** 0.4506
|
11 |
- 1-gram: 0.6698
|
|
|
23 |
|
24 |
---
|
25 |
|
26 |
+
# π§ Usage
|
27 |
|
28 |
```python
|
29 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
|
|
35 |
inputs = tokenizer(f"translate VB.NET to C#: {vb_code}", return_tensors="pt")
|
36 |
outputs = model.generate(**inputs)
|
37 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
38 |
+
```
|
39 |
|
40 |
+
# π Dataset Format
|
41 |
|
42 |
Training data was in JSONL with fields:
|
43 |
"vb_code": VB.NET input
|
44 |
"csharp_code": corresponding C# output
|
45 |
|
46 |
+
# π License
|
47 |
|
48 |
MIT
|