PHPackages                             luoxun/chinesebayes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. luoxun/chinesebayes

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

luoxun/chinesebayes
===================

中文贝叶斯学习

v1.0.1(10y ago)2381PHP

Since Dec 18Pushed 10y ago1 watchersCompare

[ Source](https://github.com/luoxun/chinesebayes)[ Packagist](https://packagist.org/packages/luoxun/chinesebayes)[ Docs](http://github.com/luoxun/chinesebayes)[ RSS](/packages/luoxun-chinesebayes/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (5)Versions (8)Used By (0)

\#中文贝叶斯插件

\###1. 简介 github上有很多老外的贝叶斯算法,但是中文分词和English 有明显的不同.so.抽空自己写了一个,分词服务的话,可以用文中的地址试验(求不要在生产环境) 我试了三方的分词服务,比较明显的一个词语是iphone6S这个单词,新浪的SAE分出来是iphone 和 6S 而其他很多分词服务都是iphone 6 S ,所以就用的新浪的分词服务,反正不贵 是吧. :-)

\###.安装

**composer 安装**

```
"require": {
    "luoxun/chinesebayes": "dev-master"
  },
```

\###使用

#### 普通使用

[](#普通使用)

#### laravel中使用

[](#laravel中使用)

```
1. 学习
Bayes::train('good','罗技鼠标');
2. 分析
Bayes::guess('罗技'));

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 85.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~78 days

Recently: every ~116 days

Total

7

Last Release

3737d ago

Major Versions

0.2.3 → v1.0.02016-03-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/578f83996a827671d7aa0535339f7bfc20330b9f291c22e99b23315361ffa561?d=identicon)[luoxun](/maintainers/luoxun)

---

Top Contributors

[![kbariotis](https://avatars.githubusercontent.com/u/605742?v=4)](https://github.com/kbariotis "kbariotis (92 commits)")[![luoxun](https://avatars.githubusercontent.com/u/2270200?v=4)](https://github.com/luoxun "luoxun (16 commits)")

---

Tags

classificationmachine learningbayes

### Embed Badge

![Health badge](/badges/luoxun-chinesebayes/health.svg)

```
[![Health](https://phpackages.com/badges/luoxun-chinesebayes/health.svg)](https://phpackages.com/packages/luoxun-chinesebayes)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[flarum/core

Delightfully simple forum software.

201.4M2.2k](/packages/flarum-core)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[concrete5/core

Concrete – an open source content management system.

20163.8k49](/packages/concrete5-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
