acleclair / ICPC2020_GNN

Code for the ICPC 2020 paper Improved Source Code Summarization via a Graph Neural Network
MIT License
67 stars 19 forks source link

What is the difference between tdat and sdat? #9

Closed ZhichaoOuyang closed 3 years ago

ZhichaoOuyang commented 3 years ago

Hello~ What is the difference between tdat and sdat? could the Readme be written more complete and how to use your model on other data sets?

DRMALEK commented 3 years ago

İ think that "tdat" file is for a methods and their id. However "sdat" file is for file context data, a group of methods that is in the same file for a method in tdat.

You can take a look at their "Improved Automatic Summarization of Subroutines via Attention to File Context" paper to get a better understanding.

ZhichaoOuyang commented 3 years ago

İ think that "tdat" file is for a methods and their id. However "sdat" file is for file context data, a group of methods that is in the same file for a method in tdat.

You can take a look at their "Improved Automatic Summarization of Subroutines via Attention to File Context" paper to get a better understanding.

ok! Thanks

acleclair commented 3 years ago

DRMALEK is correct. In the context of this paper we only use the tdat. The sdat are vector representations of the other methods within the same file to add file context for another similar project - "Improved Automatic Summarization of Subroutines via Attention to File Context" which DRMALEK mentioned above. The repo for that project can be found here