Views
No views yet
t5-small model. It has its own SentencePiece vocabulary model. It used single-task training on Api Recommendation Generation dataset.1from transformers import AutoTokenizer, AutoModelWithLMHead, SummarizationPipeline
2
3pipeline = SummarizationPipeline(
4 model=AutoModelWithLMHead.from_pretrained("SEBIS/code_trans_t5_small_api_generation"),
5 tokenizer=AutoTokenizer.from_pretrained("SEBIS/code_trans_t5_small_api_generation", skip_special_tokens=True),
6 device=0
7)
8
9tokenized_code = "parse the uses licence node of this package , if any , and returns the license definition if theres"
10pipeline([tokenized_code])| Language / Model | Java |
|---|---|
| CodeTrans-ST-Small | 68.71 |
| CodeTrans-ST-Base | 70.45 |
| CodeTrans-TF-Small | 68.90 |
| CodeTrans-TF-Base | 72.11 |
| CodeTrans-TF-Large | 73.26 |
| CodeTrans-MT-Small | 58.43 |
| CodeTrans-MT-Base | 67.97 |
| CodeTrans-MT-Large | 72.29 |
| CodeTrans-MT-TF-Small | 69.29 |
| CodeTrans-MT-TF-Base | 72.89 |
| CodeTrans-MT-TF-Large | 73.39 |
| State of the art | 54.42 |