paper-with-me

Papers

Text Classification for Task-based Source Code Related Questions

2021-10-31 · Sairamvinay Vijayaraghavan, Jinxiao Song, David Tomassi, Siddhartha Punj, Jailan Sabet

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.

📄 PDF Abstract BibTeX arXiv:2111.00580

Code (0)

등록된 구현이 없습니다.

Tasks

ClassificationQuestion Answeringtext-classificationText Classification

Methods 이 논문이 사용한 방법론

Sigmoid Activation 설명 없음
Tanh Activation 설명 없음
LSTM An LSTM is a type of recurrent neural network that addresses the vanishing gradient problem in vanilla…
Seq2Seq Seq2Seq, or Sequence To Sequence, is a model used in sequence prediction tasks, such as language modelling and machine translation. The idea is to use one…

Similar Papers 제목 키워드 기반

Enhancing Source Code Classification Effectiveness via Prompt Learning Incorporating Knowledge Features

2024-01-10 · Yong Ma, Senlin Luo, Yu-Ming Shang, Yifei Zhang 외

Researchers have investigated the potential of leveraging pre-trained language models, such as CodeBERT, to enhance source code-related tasks. Previous methodologies have relied on CodeBERT's '[CLS]' token as the embeddi…

ClassificationCode ClassificationLanguage ModellingPrompt Learning+5

CoCoP: Enhancing Text Classification with LLM through Code Completion Prompt

2024-11-13 · Mohammad Mahdi Mohajeri, Mohammad Javad Dousti, Majid Nili Ahmadabadi

Text classification is a fundamental task in natural language processing (NLP), and large language models (LLMs) have demonstrated their capability to perform this task across various domains. However, the performance of…

ClassificationCode CompletionFew-Shot Learningtext-classification+1

Commit2Vec: Learning Distributed Representations of Code Changes

2019-11-18 · Rocìo Cabrera Lozoya, Arnaud Baumann, Antonino Sabetta, Michele Bezzi

Deep learning methods, which have found successful applications in fields like image classification and natural language processing, have recently been applied to source code analysis too, due to the enormous amount of f…

General Classificationimage-classificationImage ClassificationTransfer Learning

SciPrompt: Knowledge-augmented Prompting for Fine-grained Categorization of Scientific Topics

2024-10-02 · Zhiwen You, Kanyao Han, Haotian Zhu, Bertram Ludäscher 외

Prompt-based fine-tuning has become an essential method for eliciting information encoded in pre-trained language models for a variety of tasks, including text classification. For multi-class classification tasks, prompt…

ClassificationLanguage ModelingLanguage ModellingMasked Language Modeling+3

Exploiting Cross-Lingual Subword Similarities in Low-Resource Document Classification

2018-12-22 · Mozhi Zhang, Yoshinari Fujinuma, Jordan Boyd-Graber

Text classification must sometimes be applied in a low-resource language with no labeled training data. However, training data may be available in a related language. We investigate whether character-level knowledge tran…

ClassificationCross-Lingual Document ClassificationDocument ClassificationGeneral Classification+3