Download the PHP package deevee15/text-similarity-php without Composer
On this page you can find all versions of the php package deevee15/text-similarity-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download deevee15/text-similarity-php
More information about deevee15/text-similarity-php
Files in deevee15/text-similarity-php
Package text-similarity-php
Short Description php service for text similarity
License Apache-2.0
Homepage https://similarity.deevee.ru
Informations about the package text-similarity-php
TextSimilarity
TextSimilarity is pure PHP library for detecting duplicate news articles using morphological analysis and entity-weighted scoring.
Read more about TextSimilarity:
- Features
- Installation
- Requirements
- Getting started
- How it works
- Demo
- Licence
Features
- Morphological text processing via phpMorphy
- Named entity extraction (names, locations, organizations, abbreviations)
- Weighted scoring system with configurable coefficients
- File-based word cache for performance
- English, Deutsch and Russian language support
Installation
TextSimilarity is installed via Composer. To add a dependency to TextSimilarity in your project,
Run the following to use the latest stable version
Requirements
- PHP 8.1 or above
- phpMorphy library
Getting started
How it works
The TextSimilarity library divides all words from compared texts and article titles into entities (proper names, common nouns, locations, abbreviations, organizations), converts them to the nominative case, then retains only the matching ones, assigns points based on the matches, and multiplies them by the importance coefficients specified in src/Config/WeightConfig.php.
Demo
Here is the link to the demo website
License
Apache 2.0