Pairwise Multi-Class Document Classification for Semantic Relations between Wikipedia Articles

Malte Ostendorff, Terry Ruas, Moritz Schubotz, Georg Rehm, Bela Gipp
3/22/2020
28 citations
cs.DLcs.CLcs.IR

Official code: malteos/semantic-document-relations (31 stars, Python, MIT, PyTorch, last commit 2023-06-12).

Abstract

Many digital libraries recommend literature to their users considering the similarity between a query document and their repository. However, they often fail to distinguish what is the relationship that makes two documents alike.

Show full abstract

In this paper, we model the problem of finding the relationship between two documents as a pairwise document classification task. To find the semantic relation between documents, we apply a series of techniques, such as GloVe, Paragraph-Vectors, BERT, and XLNet under different configurations (e.g., sequence length, vector concatenation scheme), including a Siamese architecture for the Transformer-based systems. We perform our experiments on a newly proposed dataset of 32,168 Wikipedia article pairs and Wikidata properties that define the semantic document relations. Our results show vanilla BERT as the best performing system with an F1-score of 0.93, which we manually examine to better understand its applicability to other domains. Our findings suggest that classifying semantic relations between documents is a solvable task and motivates the development of recommender systems based on the evaluated techniques. The discussions in this paper serve as first steps in the exploration of documents through SPARQL-like queries such that one could find documents that are similar in one aspect but dissimilar in another.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Implementation, trained models and result data for the paper "Pairwise Multi-Class Document Classification for Semantic Relations between Wikipedia Articles"

312Python, Jupyter NotebookJan 9, 20203 years agoMIT
bertdocumentdocument-classificationpytorchsimilarity+3 more

Similar Papers

Cite this paper

@article{ostendorff2020pairwise,
  title  = {Pairwise Multi-Class Document Classification for Semantic Relations between Wikipedia Articles},
  author = {Malte Ostendorff and Terry Ruas and Moritz Schubotz and Georg Rehm and Bela Gipp},
  year   = {2020},
  eprint = {2003.09881},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.09881}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2003.09881.svg)](https://codeofpaper.com/paper/2003.09881)

Discussion