Introduction
Semantic similarity—the computational capacity to recognize that terms like "attorney" and "lawyer" are conceptually related—is a fundamental challenge in Natural Language Processing (NLP). General-purpose models, such as those trained on broad datasets like Google News, frequently underperform in specialized domains. In the legal field, terminology often involves Latin roots and specific technical interpretations that diverge from common usage. Furthermore, standard models often fail to handle inflected forms (e.g., "judge," "judges," "judged") efficiently, leading to redundant vocabulary and diluted semantic relationships. This research proposes a hybrid approach that bridges distributional semantics (contextual usage) and topological semantics (expert-curated ontologies).
Methodology
The proposed system utilizes a multi-stage pipeline to generate a domain-specific similarity measure. The process begins with Text Lemmatization using the Stanford CoreNLP library to map inflected words to their base lemmas, concentrating semantic weight and reducing model "bloat." Subsequently, a Word2Vec model is trained using the Continuous Bag of Words (CBOW) architecture on a specialized legal corpus.
To enhance these neural embeddings, the system integrates three established Lexical Similarity Measures derived from WordNet:
- Wu & Palmer: Taxonomy depth-based similarity.
- Jiang & Conrath: A hybrid approach using corpus statistics and taxonomy.
- Hirst & St-Onge: Path length and directionality between synsets.
Finally, a Neural Weighting layer (a single-hidden-layer neural network) learns the optimal combination of Word2Vec scores and lexical measures, allowing the system to dynamically prioritize the most reliable measure for any given word pair.
Experimental Design
The study leveraged a Legal Corpus consisting of over 35,000 case documents (approximately 20 billion words) sourced from Findlaw. A Generic Baseline ($word2vec_G$) was established using the Google News dataset (100 billion words). To evaluate performance, a Golden Standard benchmark was developed in collaboration with legal experts, comprising 100 concepts paired with five highly related terms selected from a pool of 1,500 legal words.
Results and Discussion
The performance of four distinct models was evaluated: $word2vec_G$ (Google), $word2vec_{LR}$ (Raw Legal), $word2vec_{LL}$ (Lemmatized Legal), and $word2vec_{LLS}$ (the proposed Synergistic model).
The synergistic model ($word2vec_{LLS}$) consistently outperformed all other configurations across various $k$ values (the number of retrieved similar words). At $k=200$, the $word2vec_{LLS}$ model achieved an F1-score of 0.60, compared to 0.57 for the Google baseline and 0.58 for the lemmatized legal model.
Key insights from the results include:
- Domain Specificity: Models trained on smaller, highly relevant datasets can outperform massive general-purpose models.
- Impact of Lemmatization: Lemmatization significantly improved accuracy and reduced the memory footprint by grouping related grammatical forms.
- Hybridization Benefits: Combining neural embeddings with formal lexicons addresses the contextual and structural blind spots of each individual method, particularly improving recall—a critical metric for legal research.
Conclusion
This research demonstrates that a synergistic approach combining Word2Vec and lexical ontologies provides superior semantic similarity performance in the legal domain. Future work will explore extending this methodology to sentence and document-level similarity to further enhance automated legal research and retrieval systems.
Summary updated