承接 deevee15/text-similarity-php 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

deevee15/text-similarity-php

最新稳定版本:v1.0.0

Composer 安装命令:

composer require deevee15/text-similarity-php

包简介

php service for text similarity

README 文档

README

TextSimilarity is pure PHP library for detecting duplicate news articles using morphological analysis and entity-weighted scoring.

Read more about TextSimilarity:

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 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

composer require deevee15/text-similarity-php

Requirements

Getting started

use PHPTextSimilarity\TextSimilarity;

$result = TextSimilarity::compare(
    'en',
    'First article`s text...',
    'Second article`s text...',
    ['first' => "Article's title", 'second' => "Article's title"]
);

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

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2026-04-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固