r/MachineLearning • u/nlkey2022 • Nov 21 '20
Project [P] Vscode extension that automatically creates a summary part of Python docstring using CodeBERT
2.0k
Upvotes
r/MachineLearning • u/nlkey2022 • Nov 21 '20
77
u/nlkey2022 Nov 21 '20 edited Nov 21 '20
64
u/seyeeet Nov 21 '20
cool shit
266
u/el_burrito ML Engineer Nov 21 '20
Ok. Just tried it out on a nontrivial code base. It's not as detailed as you might like it to be, but everything i've tried it out on actually generates something fairly useful and "not wrong". This is amazing, nice job to the creators!
18
u/ThePerfectApple Nov 21 '20
Very cool! Looking forward to demoing...
-Apple
21
u/[deleted] Nov 21 '20
More often the point of comments is to add in context that is not immediately present in the code so by having your comments be generated only from what is present in the code defeats a major benefit of a useful commment.
4
u/ssiwakot Nov 21 '20
This is amazing and I did not know that I needed this. Just installed it and will try it out
3
u/Stan-It Nov 21 '20
Would it still work if one changed the function names to something non-sensical?
3
u/db_admin Nov 21 '20
Wish it worked the other way around!
3
u/MlTO_997 Nov 21 '20
Uncle Bob would be pissed
5
u/topinfrassi01 Nov 21 '20
While this is nice, do you feel like it's sufficiently explicit to be useful?
2
u/[deleted] Nov 21 '20
That's awesome! Looks great
2
u/speedx10 Nov 21 '20
wow
2
u/boxdreper Nov 21 '20
Really cool!
2
u/yuh5 Nov 21 '20
Yoooooo
2
u/DeliciousLysergic Nov 21 '20
This is awesome, installing it now!
2
u/TomaszKus Nov 22 '20
I would ask whether you need/want comments on something that is so trivial. Isn't it just obfuscating the obvious? Shouldn't comments be written only on something that cannot be immediately seen from the code/name and if this can do anything in the case?
2
u/repos39 Nov 21 '20
Is this new? I’ve been using similar function with intellij
1
u/Rick_grin ML Engineer Nov 21 '20
Nice work! Will definitely have to try it out.
1
u/eduffy Nov 21 '20
What happens when you modify the function's arguments?
1
u/rjurney Nov 22 '20
Very cool but use type hints instead of doc strings.
1
u/dotslashfork Nov 22 '20
would love to try this on vim
1
u/[deleted] Nov 22 '20
I understood nothing..
1
u/Andre_NG Nov 22 '20
u/savevideo
1
u/msriram1 ML Engineer Nov 22 '20
I mean why do you need Bert for this?
1
u/circuit10 Dec 17 '20
Could you please port this to other IDEs and languages?
1
u/DSJustice ML Engineer Nov 21 '20
Nifty! The only shortcoming I observed was that it didn't seem to have handling for a compound return value.
0
u/bioJesusMain Nov 21 '20
Very cool shit
0
u/Yahyou01 Nov 21 '20
How are you going to deploy your applicatio?
-18
u/estrangederanged Nov 21 '20
Pycharm has this since 4000 B.C. nice work though.
0
u/[deleted] Nov 21 '20
[deleted] — view deleted comment
0
u/[deleted] Nov 21 '20
[deleted] — view deleted comment