CodeTrans model for code documentation generation ruby
Pretrained model on programming language ruby using the t5 base model architecture. It was first released in
this repository. This model is trained on tokenized ruby code functions: it works best with tokenized ruby functions.
Model description
This CodeTrans model is based on the t5-base model. It has its own SentencePiece vocabulary model. It used single-task training on CodeSearchNet Corpus ruby dataset.
Intended uses & limitations
The model could be used to generate the description for the ruby function or be fine-tuned on other ruby code tasks. It can be used on unparsed and untokenized ruby code. However, if the ruby code is tokenized, the performance should be better.
How to use
Here is how to use this model to generate ruby function documentation using Transformers SummarizationPipeline: