定制 wdmg/lingua-stem 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

wdmg/lingua-stem

Composer 安装命令:

composer require wdmg/lingua-stem

包简介

Implementation of the Porter Stemmer algorithm with support English, Russian and Ukrainian locales.

README 文档

README

Downloads Packagist Version Progress GitHub license

LinguaStem

Implementation of the Porter Stemmer algorithm with support English, Russian and Ukrainian locales. Based on PorterStemmer class [https://tartarus.org/martin/PorterStemmer/php.txt] and [http://snowball.tartarus.org/algorithms/russian/stemmer.html]

Requirements

  • PHP 5.6 or higher

Installation

To install the library, run the following command in the console:

$ composer require "wdmg/lingua-stem"

Usage

<?php

    $word = 'landmarks';
    $stem = new LinguaStem('en');
    print $stem::word($word);
    
    // or
    
    $text = 'Chicago has many historic places to visit. Keith found the Chicago Water Tower impressive as it is one of the few remaining landmarks to have survived the Great Chicago Fire of 1871.';
    $stem = new LinguaStem('en');
    print $stem->text($text);

?>

Common Information

http://snowball.tartarus.org/algorithms/porter/stemmer.html https://metacpan.org/release/Lingua-Stem https://en.wikipedia.org/wiki/Stemming https://ru.wikipedia.org/wiki/Стеммер_Портера

Status and version [ready to use]

  • v.1.1.0 - Update copyrights
  • v.1.0.1 - Added namespace
  • v.1.0.0 - Added LinguaStem() class code and library of patterns

Copyrights

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固