POSIT: Simultaneously tagging natural and programming languages

12Citations
Citations of this article
37Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Software developers use a mix of source code and natural language text to communicate with each other: Stack Overflowand 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.

Cite

CITATION STYLE

APA

Partachi, P. P., Dash, S. K., Treude, C., & Barr, E. T. (2020). POSIT: Simultaneously tagging natural and programming languages. In Proceedings - International Conference on Software Engineering (pp. 1348–1358). IEEE Computer Society. https://doi.org/10.1145/3377811.3380440

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free