AI tools, scored for your job
Get paid to train AI
🤝 You're in the Free & Open Source library — community-built tools you can use without paying. A different concept from our scored AI directory.
Home › Free & Open Source › Customer Support › Similarity
✦ Free & open sourceCustomer Support

Similarity

Compute text similarity scores and sentiment in Java for NLP tasks.

Java Text Similarity & NLP Toolkit

Calculate word, phrase, sentence, and paragraph similarities in Java

Free forever · open source · Apache-2.0
✓ Light setup✓ Browser-based✓ Real-time collaboration
7.5
ZEKAI
Java text similarity toolkit
Free & open source · Customer Support
Ease of setup8
Usefulness7
Maintenance8.5
Community6.5
★ 1,582
GITHUB
Jul 2026
UPDATED
Apache-2.0
LICENSE
🛠 Don't want to self-host? We can set it up →
⚡ Quick answer

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.

Runs on
Cross-platform
Hosting
Self-host
Languages
Java
License
Apache-2.0

What it is

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.

Who it's for

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.

Key features

Granular Similarity Scoring

Compute scores across words, phrases, sentences, and paragraphs using specialized algorithms.

Lexicon-Based Sentiment

Analyze positive and negative word tendencies using HowNet semantic trees.

Word2vec Recommendations

Generate synonyms and train word vector models using custom text corpora.

Lazy Loading Dictionaries

Maintain low coupling with plain-text dictionaries loaded lazily for efficient resource usage.

How to start

Up and running in 3 steps

1
Add the JitPack repository and the similarity dependency to your Maven pom.xml or Gradle build file.
2
Initialize the desired similarity class, such as calling Similarity.cilinSimilarity for words or CosineSimilarity for text.
3
Execute the similarity or sentiment calculation methods using your target text strings.
Real talk

Our honest verdict

What's great

  • Supports multiple text granularities from words to paragraphs
  • Includes specialized Chinese NLP resources like Cilin and HowNet
  • Plain-text dictionaries allow easy customization with your own corpus
  • Low-coupling architecture with lazy model loading

Where it falls short

  • Written entirely in Java, requiring Java integration for non-Java stacks
  • Advanced deep learning models like BERT are not included in this package
  • Requires manual implementation and compilation into your existing Java project
Cost

Pricing & license

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.

Paid work

Open remote AI-training roles

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.

See all open roles →
Compare

Alternatives

These reviewed AI tools do the same job instantly — from our scored directory.

Get more

Use it, or have us set it up

📄 Free PDF: Similarity for Customer Support
A plain-language guide to getting your first result. Sent to your inbox.
🔔 64 people want a full video tutorial — add your vote
🛠 Don't want to set it up yourself?
We'll install, host & configure Similarity for you — and train your team.
Get it done for you ↗
Questions

FAQ

What Java versions are supported?

The repository does not specify a strict Java version, but standard modern Java environments are assumed for Maven or Gradle integration.

Can I use custom training data?

Yes, dictionaries are published in plain text and you can train custom word2vec corpora using the provided tools.

Does this toolkit handle deep learning models?

No, this toolkit focuses on traditional semantic and lexical algorithms; deep learning models like BERT require separate libraries.

Radar

Latest AI news

✉️ The weekly free toolkit
The best new free & open-source tools for Customer Support — one short email a week, in your language.
Free · 1 email/week · unsubscribe anytime
Get paid to train AI →

See Zekai first in Google