minh7721/vietnamese-related-words
最新稳定版本:1.0.1
Composer 安装命令:
composer require minh7721/vietnamese-related-words
包简介
Make related words from vietnamese string
README 文档
README
composer require nguyenhiep/vietnamese-related-words
Configuration
To configure the package you need to publish settings first:
php artisan vendor:publish --provider="Nguyenhiep\VietnameseRelatedWords\VietnameseRelatedWordsServiceProvider"
| Option | Description |
|---|---|
| es_host | elasticsearch host |
| mapping | additional mapping rules |
Usage
$analyer = new Nguyenhiep\VietnameseRelatedWords\VietnameseAnalyzer(); //using vncorenlp $analyer->vncorenlp("một chuỗi tiếng việt"); //["chuỗi tiếng","một chuỗi","chuỗi tiếng việt",] //using coccoc tokenizer $analyer->es_analyze("một chuỗi tiếng việt"); //["một","chuỗi","tiếng việt",] //using VnTokenizer library $analyer->es_analyze("một chuỗi tiếng việt"); //["một","chuỗi","tiếng","việt",]
Notice:
- if you want to see analying results, add param `true` to analyer construct
- if you want to add more mapping rules, add them in `vietnamese-related-words.php`
Reference
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-06