shibing624/similarity
similarity: Text similarity calculation Toolkit for Java. 文本相似度计算工具包,java编写,可用于文本相似度计算、情感分析等任务,开箱即用。 observed · 2026-08-28
Health v2 · maintenance only
64/100
- Activity 92
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3585
- days_rel: n/a
- days_push: 48
- n_releases_24m: 0
Adoption not part of the score
1584 stars · 343 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Java toolkit for computing text similarity at word, phrase, sentence, and paragraph levels, offering algorithms like Cilin-based similarity, edit distance, cosine similarity, Jaccard, SimHash, and more. It also includes Chinese sentiment analysis, lexicon-based word tendency scoring, and word2vec-based near-word lookup.
Use cases
- compute similarity between two Chinese words or sentences in Java
- find duplicate or near-duplicate paragraphs with SimHash or cosine similarity
- score the sentiment polarity of Chinese words
- compare strings with edit distance or Jaro-Winkler in a JVM app
- find semantically similar words using a Chinese thesaurus
- build a deduplication or matching feature for Chinese text
When to choose
- you need text similarity computation in a Java/JVM project
- you work with Chinese text and want thesaurus- or Hownet-based semantic similarity
- you want multiple similarity algorithms behind one simple API
- you need lightweight, dictionary-based sentiment tendency scoring
When to avoid
- you need neural embedding-based similarity (e.g., BERT/sentence transformers) rather than lexical/semantic-dictionary methods
- your primary language is not Chinese and you need multilingual semantic similarity
- you work in Python or another non-JVM stack
Facets
library · maturity active
nlp machine-learning jvm text-similarity sentiment-analysis word2vec edit-distance cosine-similarity chinese-nlp natural-language-processing text-processing
2 sources
- readme: https://github.com/shibing624/similarity · fetched 2026-08-28 · 734a3b9960bf
- homepage: https://shibing624.github.io/similarity/ · fetched 2026-08-29 · 32bb9f774aa2
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| shibing624/similarity | main | 64 |
For agents
markdown · JSON · MCP: product_card(name="shibing624/similarity")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem