Measuring Document Similarity with Weighted Averages of Word Embeddings
25 Pages Posted: 20 Apr 2022 Last revised: 31 Jan 2023
Date Written: September 2022
Abstract
We detail a methodology for estimating the textual similarity between two documents while accounting for the possibility that two different words can have a similar meaning. We illustrate the method's usefulness in facilitating comparisons between documents with very different formats and vocabularies by textually linking occupation task and industry output descriptions with related technologies as described in patent texts; we also examine economic applications of the resultant document similarity measures. In a final application we demonstrate that the method also works well relative to alternatives for comparing documents within the same domain by showing that pairwise textual similarity between occupations' task descriptions strongly predicts the probability that a given worker will transition from one occupation to another. Finally, we offer some suggestions on other potential uses and guidance in implementing the method.
Keywords: textual analysis, measuring document similarity
Suggested Citation: Suggested Citation