POSIT
Profir-Petru Pârţachi, Santanu Kumar Dash, Christoph Treude et al. · 2020
Software developers use a mix of source code and natural language text to communicate with each other: Stack Overflow and Developer mailing lists abound with this mixed text. Tagging this mixed text is essential for making progress on two seminal software engineering problems --- traceability, and reuse via precise extraction of code snippets from mixed text. In this paper, we borrow code-switching techniques from Natural Language Processing and adapt them to apply to mixed text to solve two problems: language identification and token tagging. Our technique, POSIT, simultaneously provides abstract syntax tree tags for source code tokens, part-of-speech tags for natural language words, and predicts the source language of a token in mixed text. To realize POSIT, we trained a biLSTM network with a Conditional Random Field output layer using abstract syntax tree tags from the CLANG compiler and part-of-speech tags from the Standard Stanford part-of-speech tagger. POSIT improves the state-of-the-art on language identification by 10.6% and PoS/AST tagging by 23.7% in accuracy.
Cited by 9 works. doi:10.1145/3377811.3380440
Authors
References
- A Coefficient of Agreement for Nominal Scales
- AutoResearch Lite: a reproducible paper-inspired experiment runner (Adam mechanism reproduction and convergence-speed comparison)
- Error bounds for convolutional codes and an asymptotically optimum decoding algorithm
- Building a Large Annotated Corpus of English: The Penn Treebank
- Natural language processing with Python
- Bidirectional LSTM-CRF Models for Sequence Tagging
- Sometimes I’ll start a sentence in Spanish Y TERMINO EN ESPAÑOL: toward a typology of code-switching1
- A Universal Part-of-Speech Tagset
- On the Use of Automated Text Summarization Techniques for Summarizing Source Code
- Supporting program comprehension with source code summarization