Document Distance Estimation via Code Graph Embedding
Abstract
Accurately representing the distance between two documents (i.e. pieces of textual information extracted from various software artifacts) has far-reaching applications in many automated software engineering approaches, such as concept location, bug location and traceability link recovery. This is a challenging task, since documents containing different words may have similar semantic meanings. In this paper, we propose a novel document distance estimation approach. This approach captures latent semantic associations between documents through analyzing structural information in software source code: first, we embed code elements as points in a shared representation space according to structural dependencies between them; then, we represent documents as weighted point clouds of code elements in the representation space and reduce the distance between two documents to an earth mover's distance transportation problem. We define a document classification task in StackOverflow dataset to evaluate the effectiveness of our approach. The empirical evaluation results show that our approach outperforms several state-of-the-art approaches.
BibTeX
@inproceedings{lin2017document,
author = {Zeqi Lin and Junfeng Zhao and Yanzhen Zou and Bing Xie},
title = {{Document Distance Estimation via Code Graph Embedding}},
booktitle = {Internetware},
year = {2017},
doi = {10.1145/3131704.3131713},
}Ask Althea to put this paper to the test.
Loading related content...