peterjandre commited on
Commit
eb74a50
Β·
verified Β·
1 Parent(s): 42b1426

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -4
README.md CHANGED
@@ -5,7 +5,7 @@ This is a fine-tuned version of [Salesforce/CodeT5-base](https://huggingface.co/
5
 
6
  ---
7
 
8
- ## πŸ“Š Evaluation Metrics
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
- ## πŸ”§ Usage
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
- ## πŸ“ Dataset Format
40
 
41
  Training data was in JSONL with fields:
42
  "vb_code": VB.NET input
43
  "csharp_code": corresponding C# output
44
 
45
- ## πŸ“„ License
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