Self Learning from Large Scale Code Corpus to Infer Structure of Method Invocations
MethodInfoToCode embeds code context to improve the inference of method invocation structure from natural language descriptions. Extending phrase-based statistical machine translation, it learns from 2.86 million method invocations extracted from high-quality GitHub repositories using six popular libraries (JDK, Android, GWT, Joda-Time, Hibernate, Xstream). Given only a method name, the approach predicts the full invocation expression with a 73% F1 score.

arXiv ·
· September 6, 2019