-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract Path Contexts Only #110
Comments
Hi @Avra2 ,
What exactly do you mean by "extract path context"?
Do you want the paths? (it's in the raw dataset)
These paths' representations? (do you really want ~200 vectors for every
example?)
The aggregation of these 200 vectors? (this is the "code vector")
Uri
…On Sun, Dec 5, 2021 at 3:44 PM Avra ***@***.***> wrote:
Hello,
Given that both your models code2seq and code2vec are initially made to
predict *method name* from source code body represented as *path context*,
can you please give give how to extract *path context* as we are just
looking for source code representation of the source code.
Thank you.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#110>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADSOXMCTQ5I57YS253EB6T3UPPFJ5ANCNFSM5JNF3EAQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Seems @Avra2 wants to get You can run it with Suppose, you have the code:
So, the code will be translated into the following list of paths:
Did u want those lists of paths (you called it "path context")? |
@lyriccoder @urialon. Thanks for response. By path context, I don't refer to paths extracted by parser but aggregated path learned by your model by the help of attention mechanism as this should be "the most that contributes to method name" please? So can we use this "vector that the most that contributes to method name" as representation embedding for the whole file or this is just useful for your task, which is method name prediction? If this vector can be used for various tasks, then can you please show how to extract it from your network during training? Thanks. |
… On Wed, Dec 8, 2021 at 2:53 PM Avra ***@***.***> wrote:
@lyriccoder <https://github.com/lyriccoder> @urialon
<https://github.com/urialon>. Thanks for response. By *path context*, I
don't refer to paths extracted by parser but *aggregated path* learned by
your model by the help of attention mechanism as this should be the most
that contributes to method name please? So can we use this *vector that
the most that contributes to method name please* as representation
embeddin for the whole file or this is just useful for your task, which is
method name prediction? If this vector can be used for various tasks, then
can you please show how to extract it from your network during training?
Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#110 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADSOXMBOGGT33YQQJTXNRP3UP6ZS5ANCNFSM5JNF3EAQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@urialon. Thank you. |
Hello,
Given that both your models code2seq and code2vec are initially made to predict method name from source code body represented as path context, can you please give give how to extract path context as we are just looking for source code representation of the source code.
Thank you.
The text was updated successfully, but these errors were encountered: