mlsanityData to 14 Oct 2026

Text Classification for Task-based Source Code Related Questions

arXiv 2111.00580 ↗First posted 31 Oct 2021cs.SE cs.CL cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

There is a key demand to automatically generate code for small tasks for developers. Websites such as StackOverflow provide a simplistic way by offering solutions in small snippets which provide a complete answer to whatever task question the developer wants to code. Natural Language Processing and particularly Question-Answering Systems are very helpful in resolving and working on these tasks. In this paper, we develop a two-fold deep learning model: Seq2Seq and a binary classifier that takes in the intent (which is in natural language) and code snippets in Python. We train both the intent and the code utterances in the Seq2Seq model, where we decided to compare the effect of the hidden layer embedding from the encoder for representing the intent and similarly, using the decoder's hidden layer embeddings for the code sequence. Then we combine both these embeddings and then train a simple binary neural network classifier model for predicting if the intent is correctly answered by the predicted code sequence from the seq2seq model. We find that the hidden state layer's embeddings perform slightly better than regular standard embeddings from a constructed vocabulary. We experimented with our tests on the CoNaLa dataset in addition to the StaQC database consisting of simple task-code snippet-based pairs. We empirically establish that using additional pre-trained embeddings for code snippets in Python is less context-based in comparison to using hidden state context vectors from seq2seq models.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 13 of its 20 references that are in the map. First posted on arXiv 31 Oct 2021.

Builds on

13 of 20 references.

References · 13

  1. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
  2. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
  3. 2020Unsupervised Translation of Programming Languagescited by 263
  4. 2018code2vec: Learning Distributed Representations of Codecited by 250
  5. 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
  6. 2018SequenceR: Sequence-to-Sequence Learning for End-to-End Program Repaircited by 145
  7. 2018Tree-to-tree Neural Networks for Program Translationcited by 93
  8. 2018TRANX: A Transition-based Neural Abstract Syntax Parser for Semantic Parsing and Code Generationcited by 88
  9. 2018TypeSQL: Knowledge-based Type-Aware Neural Text-to-SQL Generationcited by 81
  10. 2018StaQC: A Systematically Mined Question-Code Dataset from Stack Overflowcited by 30
  11. 2019DockerizeMe: Automatic Inference of Environment Dependencies for Python Code Snippetscited by 13
  12. 2018Path-Based Function Embedding and its Application to Specification Miningcited by 8
1 more
  1. 2019Using Distributed Representation of Code for Bug Detectioncited by 3

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024CodeXEmbed: A Generalist Embedding Model Family for Multiligual and Multi-task Code Retrieval
  2. 2025A Code Comprehension Benchmark for Large Language Models for Code
  3. 2021Tiny Neural Models for Seq2Seq
  4. 2022CodeQueries: A Dataset of Semantic Queries over Code
  5. 2026Robustness and Reasoning Fidelity of Large Language Models in Long-Context Code Question Answering
  6. 2024Pyramid Coder: Hierarchical Code Generator for Compositional Visual Question Answering
  7. 2023Tram: A Token-level Retrieval-augmented Mechanism for Source Code Summarization
  8. 2025Verified Language Processing with Hybrid Explainability: A Technical Report