Compute text similarity scores and sentiment in Java for NLP tasks.
Calculate word, phrase, sentence, and paragraph similarities in Java
Similarity is an open-source Java toolkit designed to compute semantic distance across multiple text granularities, from individual words to entire paragraphs. It suits Java developers and NLP engineers building support systems that require semantic matching or intent analysis.
The toolkit provides algorithms for word similarity via Cilin and HowNet, phrase and sentence matching using morpho-syntactic rules, and paragraph similarity through cosine distance and Edit Distance. It also includes HowNet-based word sentiment analysis and word2vec-powered synonym recommendations.
Suits Java-centric development teams building custom customer support matching engines or intent classifiers. Does not suit developers working outside the Java ecosystem or those needing pre-built deep learning transformer models like BERT out of the box.
Compute scores across words, phrases, sentences, and paragraphs using specialized algorithms.
Analyze positive and negative word tendencies using HowNet semantic trees.
Generate synonyms and train word vector models using custom text corpora.
Maintain low coupling with plain-text dictionaries loaded lazily for efficient resource usage.
Free under the Apache-2.0 licence with no paid hosted options mentioned. The only cost is integrating and running the library within your own Java application architecture.
880 open remote AI-training roles, updated November 15, 2026; most pay $20–$175 an hour. Zekai lists them free; the application goes to the employer’s platform.
These reviewed AI tools do the same job instantly — from our scored directory.
The repository does not specify a strict Java version, but standard modern Java environments are assumed for Maven or Gradle integration.
Yes, dictionaries are published in plain text and you can train custom word2vec corpora using the provided tools.
No, this toolkit focuses on traditional semantic and lexical algorithms; deep learning models like BERT require separate libraries.
See Zekai first in Google