maxakawizard/phpmorphy
最新稳定版本:1.3.0
Composer 安装命令:
composer require maxakawizard/phpmorphy
包简介
phpMorphy - morphological analyzer library for Russian, English and German languages
关键字:
README 文档
README
phpMorphy is morphological analyzer library for Russian, English and German languages.
This library allows to retrieve following morph information for any word:
- base (normal) form;
- all forms;
- grammatical (part of speech, grammems) information.
Installation
To install the library in your project using Composer, first add the following to your composer.json
config file:
{ "require": { "maxakawizard/phpmorphy": "~1.0" } }
Then run Composer's install or update commands to complete installation.
Usage
See examples in examples directory.
Speed
Single word mode
| mode | base form | all forms | all forms with gram. info |
|---|---|---|---|
| FILE | 1000 | 800 | 600 |
| SHM | 2200 | 1100 | 800 |
| MEM | 2500 | 1200 | 900 |
Bulk mode:
| mode | base form | all forms | all forms with gram. info |
|---|---|---|---|
| FILE | 1700 | 800 | 700 |
| SHM | 3200 | 800 | 700 |
| MEM | 3500 | 800 | 700 |
Note:
All values are words per second speed. Test platform: PHP 5.2.3, AMD Duron 800 with 512Mb memory, WinXP.
统计信息
- 总下载量: 95.22k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-14