Closed ZJUFLS closed 3 years ago
I am currently trying the same and add the classes as label instead of the function name, setting separate_label_vocabulary
to True
and num_subtokens_output
to 1
. But maybe the authors have a better solution, or additional requirements :)
Yes, that should be a fairly direct way to achieve what you want. Closing this, feel free to reopen in case you have follow-up questions.
Cool idea to use the Code Transformer for method classification. A few remarks:
vocabularies.p
file is just a pickled 3- or 4-tuple of Vocabulary
objects).Code Transformer
encoder together with a regular Transformer Decoder. For Method Classification having a simple linear layer in the end instead of the Decoder might be better.Thank you! I considered the first two, but it's good to have a confirmation.
Hi, I would like to build a method/function classifier using code-transformer, the labels are going to be 0,1,2,..9,
Could i get some suggestions on how to build it?
Any guidelines would be hugely appreciated! :D