返回
Learning to Predict User-Defined Types
DOI:10.1109/TSE.2022.3178945.png)
摘要
En 中文
TypeScript is a widely adopted gradual typed language where developers can optionally type variables, functions, parameters and more. Probabilistic type inference approaches with ML (machine learning) work well especially for commonly occurring types such as boolean, number, and string. TypeScript permits a wide range of types including developer defined class names and type interfaces. These developer defined types, termed user-defined types, can be written within the realm of language naming conventions. The set of user-defined types is boundless and existing bounded type guessing approaches are an imperfect solution. Existing works either under perform in user-defined types or ignore user-defined types altogether. This work leverages a BERT-style pre-trained model, with multi-task learning objectives, to learn how to type user-defined classes and interfaces. Thus we present DiverseTyper, a solution that explores the diverse set of user-defined types by uniquely aligning classes and interfaces declarations to the places in which they are used. DiverseTyper surpasses all existing works including those that model user-defined types.
Keyword:
Annotations
Codes
Vocabulary
Encoding
Task analysis
Software development management
Training
Multi-Task learning
representation learning
transfer learning
type inference
期刊
IF:
5.6
论文数:
2.9K
被引数:
1.1W
机构
引用论文
Sperm chromatin acquires an activity that induces microtubule assembly during residence in the cytoplasm of metaphase oocytes of the mouse
Chromosoma
IF0
Study of bi-directional buck-boost converter topologies for application in electrical vehicle motor drives应用于电动汽车电机驱动的双向buck-boost变换器拓扑研究

