Neural Transition-based Parsing of Library Deprecations
Babkin, Petr, Navarro, Nacho, Alamir, Salwa, Shah, Sameena
–arXiv.org Artificial Intelligence
This paper tackles the challenging problem of automating code updates to fix deprecated API usages of open source libraries by analyzing their release notes. Our system employs a three-tier architecture: first, a web crawler service retrieves deprecation documentation from the web; then a specially built parser processes those text documents into tree-structured representations; finally, a client IDE plugin locates and fixes identified deprecated usages of libraries in a given codebase. The focus of this paper in particular is the parsing component. We introduce a novel transition-based parser in two variants: based on a classical feature engineered classifier and a neural tree encoder. To confirm the effectiveness of our method, we gathered and labeled a set of 426 API deprecations from 7 well-known Python data science libraries, and demonstrated our approach decisively outperforms a non-trivial neural machine translation baseline.
arXiv.org Artificial Intelligence
Dec-23-2022
- Country:
- North America
- United States
- New York > New York County
- New York City (0.04)
- Massachusetts > Middlesex County
- Cambridge (0.04)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- Colorado > Denver County
- Denver (0.04)
- California > San Francisco County
- San Francisco (0.14)
- New York > New York County
- Canada > Quebec
- Montreal (0.04)
- United States
- Europe
- United Kingdom > England
- Greater London > London (0.04)
- Spain > Galicia
- Madrid (0.04)
- Greece > Attica
- Athens (0.04)
- Bulgaria > Sofia City Province
- Sofia (0.04)
- United Kingdom > England
- North America
- Genre:
- Research Report (0.64)
- Industry:
- Banking & Finance (0.46)
- Technology: