arrow
返回

Learning to Predict User-Defined Types

delete2023-04-01
delete4
PRE
AI
K
Kevin Jesse *
P
Prémkumar Dévanbu
A
Anand Ashok Sawant
DOI:10.1109/TSE.2022.3178945delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

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

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

University of California System 封面图
University of California System
学者数:
37.7W
论文数: 33.8W
被引数: 6.6K
引用论文

引用论文

Caveolin-1 and -2 regulate cell motility in castration-resistant prostate cancer
err2018-10-01
err0
errOAAI
errToyoharu Kamibeppu; Koji Yamasaki; Kozue Nakahara; Takahiro Nagai; Naoki Terada; Hiromasa Tsukino; Shoichiro Mukai; Toshiyuki Kamoto
err分享
err收藏
YAC transgene-mediated olfactory receptor gene choiceYAC转基因介导的嗅觉受体基因选择
err2000-02-01
err0
errOAAI
errFarah A.W. Ebrahimi; James Edmondson; Rodney Rothstein; Andrew Chess
err分享
err收藏
An empirical study on the impact of static typing on software maintainability静态类型对软件可维护性影响的实证研究
err2013-12-11
err56
PREAI
errHanenberg, Stefan; Kleinschmager, Sebastian; Robbes, Romain; Tanter, Eric; Stefik, Andreas
err分享
err收藏
T1 Bladder Tumours
err1977-12-01
err0
PREAI
errJ. L. WILLIAMS; J. C. HAMMONDS; N. SAUNDERS
err分享
err收藏
学者 查看更多内容