# dhwajraj/deep-siamese-text-similarity

Tensorflow based implementation of deep siamese LSTM network to capture phrase/sentence similarity using character/word embeddings

Repository: https://github.com/dhwajraj/deep-siamese-text-similarity
Canonical: https://ross.abutalabs.com/products/deep-siamese-text-similarity
Language: Python
License: MIT
License Family: permissive
Last push: 2020-05-06T03:36:11+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3574, "days_push": 2310, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1414, forks 438 (observed 2026-08-28T04:04:39.696004+00:00)

## What it is
A TensorFlow implementation of a deep siamese LSTM network that learns phrase and sentence similarity using character-level and word-level embeddings. It trains on pairs of texts with a contrastive loss to capture semantic and structural similarity.

## Use cases
- measure similarity between two sentences
- match person name variants and abbreviations
- detect duplicate or paraphrased phrases
- train a model to score semantic similarity of text pairs
- learn character-level embeddings for typo-tolerant string matching

## When to choose
- you need a reference implementation of siamese LSTMs for text similarity research
- you want to learn pair-based similarity with character or word embeddings on legacy TensorFlow 1.x

## When to avoid
- you need production-grade code - the author explicitly marks it as an experimental prototype
- you use modern TensorFlow 2.x or PyTorch - it targets TensorFlow 1.2
- you want a maintained library or pretrained sentence embedding model

## Facets
- artifact type: library
- maturity: abandoned
- function: machine-learning, nlp, deep-learning
- domain: machine-learning, deep-learning
- platform: python
- tags: siamese-network, lstm, text-similarity, word-embeddings, character-embeddings, tensorflow, sentence-pair-scoring, natural-language-processing

## Member repositories
- dhwajraj/deep-siamese-text-similarity (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:39.696004+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:38:12.548776+00:00, confidence not recorded.
  - readme: https://github.com/dhwajraj/deep-siamese-text-similarity (fetched 2026-08-28T04:04:39.696004+00:00, sha 962c5631fdc1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
