• Home
  • Search
  • Post2Vec: Learning Distributed Representations of Stack Overflow Posts
  • Open Access IconOpen Access
  • Cite Icon29
  • https://doi.org/10.1109/tse.2021.3093761Copy DOI Icon

Post2Vec: Learning Distributed Representations of Stack Overflow Posts

Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Past studies have proposed solutions that analyze Stack Overflow content to help users find desired information or aid various downstream software engineering tasks. A common step performed by those solutions is to extract suitable representations of posts; typically, in the form of meaningful vectors. These vectors are then used for different tasks, for example, tag recommendation, relatedness prediction, post classification, and API recommendation. Intuitively, the quality of the vector representations of posts determines the effectiveness of the solutions in performing the respective tasks. In this work, to aid existing studies that analyze Stack Overflow posts, we propose a specialized deep learning architecture Post2Vec which extracts distributed representations of Stack Overflow posts. Post2Vec is aware of different types of content present in Stack Overflow posts, i.e., title, description, and code snippets, and integrates them seamlessly to learn post representations. Tags provided by Stack Overflow users that serve as a common vocabulary that captures the semantics of posts are used to guide Post2Vec in its task. To evaluate the quality of Post2Vec's deep learning architecture, we first investigate its end-to-end effectiveness in tag recommendation task. The results are compared to those of state-of-the-art tag recommendation approaches that also employ deep neural networks. We observe that Post2Vec achieves 15-25 percent improvement in terms of F1-score@5 at a lower computational cost. Moreover, to evaluate the value of representations learned by Post2Vec, we use them for three other tasks, i.e., relatedness prediction, post classification, and API recommendation. We demonstrate that the representations can be used to boost the effectiveness of state-of-the-art solutions for the three tasks by substantial margins (by 10, 7, and 10 percent in terms of F1-score, F1-score, and correctness, respectively). We release our replication package at <uri xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">https://github.com/maxxbw/Post2Vec</uri> .

Similar Papers
  • PDF
  • Research Article
  • Citations1

SCC-GPT: Source Code Classification Based on Generative Pre-Trained Transformers

  • Jul 07, 2024
  • Mathematics
  • Mohammad D Alahmadi +2
  • Conference Article
  • Citations14

Engineering Paper] SCC: Automatic Classification of Code Snippets

  • Sep 01, 2018
  • Kamel Alreshedy +4
  • PDF
  • Research Article
  • Citations3

Knowledge reuse in software projects: Retrieving software development Q&A posts based on project task similarity.

  • Dec 17, 2020
  • PloS one
  • Glaucia Melo +3
  • Conference Article
  • Citations16

Mining Stack Overflow for discovering error patterns in SQL queries

  • Sep 01, 2015
  • Csaba Nagy +1
  • Conference Article
  • Citations27

Python Coding Style Compliance on Stack Overflow

  • May 01, 2019
  • Nikolaos Bafatakis +6
  • Research Article
  • Citations15

Effective Tag Recommendation System Based on Topic Ontology UsingWikipediaand WordNet

  • Oct 19, 2012
  • International Journal of Intelligent Systems
  • V Subramaniyaswamy +1
  • Conference Article
  • Citations17

ICSD

  • Dec 03, 2018
  • Yanfang Ye +7
  • Conference Article
  • Citations28

Topic diversity in tag recommendation

  • Oct 12, 2013
  • Fabiano Belém +3
  • Conference Article
  • Citations45

CSNIPPEX: automated synthesis of compilable code snippets from Q&amp;A sites

  • Jul 18, 2016
  • Valerio Terragni +2
  • Conference Article
  • Citations7

Characterizing Duplicate Code Snippets between Stack Overflow and Tutorials

  • May 01, 2019
  • Manziba Akanda Nishi +2
  • Conference Article
  • Citations2

Randomized tag recommendation in social networks and classification of spam posts

  • Dec 01, 2010
  • Pradeep Prabakar Ravindran +3
  • Conference Article
  • Citations63

Relationship-aware code search for JavaScript frameworks

  • Nov 01, 2016
  • Xuan Li +5
  • Book Chapter
  • Citations2

CUT: A Combined Approach for Tag Recommendation in Software Information Sites

  • Jan 01, 2016
  • Yong Yang +4
  • Conference Article
  • Citations10

Towards Understanding Developers’ Machine-Learning Challenges: A Multi-Language Study on Stack Overflow

  • Sep 01, 2021
  • Alaleh Hamidi +4
  • Research Article
  • Citations42

Dual-interactive fusion for code-mixed deep representation learning in tag recommendation

  • Jun 02, 2023
  • Information Fusion
  • Lin Li +5
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.