amara/lemmatizer
最新稳定版本:v1.0.0
Composer 安装命令:
composer require amara/lemmatizer
包简介
A non-part-of-speech lemmatizer tool
README 文档
README
A PHP library for getting a lemma from a given word, and getting a list of words that map to a lemma. This does NOT support part of speech specification.
Source data
This lemma dictionary is largely based on WordNet, a project maintained at Princeton University.
Demo
See the lemmatizer in action at https://lemmatizer.markfullmer.com/
Usage in an application
The included index.php file contains an interactive demo.
Make your code aware of the Lemmatizer class via your favorite method
(e.g., use writecrow\Lemmatizer\Lemmatizer;)
Then pass a word into one of the two methods
print Lemmatizer::getLemma('leaves'); // Will print 'leaf' print Lemmatizer::getWordsFromLemma('leaf'); // Will print 'leaves,leafing,leafed,leafs'
Testing
Unit Tests can be run (after composer install) by executing vendor/bin/phpunit
统计信息
- 总下载量: 2.88k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-14