6 ms·
Github has a huge amount of source code and likely for copilot they already had to transform it into an AST to look at comments and nearby code. This would use
by qbasic_forever 5y ago
Github has a huge amount of source code and likely for copilot they already had to transform it into an AST to look at comments and nearby code. This would use the same dataset but build the opposite model--input a block of code AST and get a guess as to what the description (i.e. comment) should be for it.
- randallsquared 5y agoMy naive assumption is that they don't have nearly that level of control. I'd be surprised if they have an AST step before the tokenizer, or in it.