承接 medansoftware/naive-bayes-text-classification 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

medansoftware/naive-bayes-text-classification

Composer 安装命令:

composer require medansoftware/naive-bayes-text-classification

包简介

README 文档

README

Installation

Through Composer

composer require medansoftware/naive-bayes-text-classification

Standalone File

You can download standalone file here

Usage

require ('vendor/autoload.php');

$data = array(
	array(
		'text' => 'Hello, Good morning',
		'class' => 'greeting'
	),
	array(
		'text' => 'Hello, Good afternoon',
		'class' => 'greeting'
	),
	array(
		'text' => 'Hello, Good night',
		'class' => 'greeting'
	),
	array(
		'text' => 'How are you?',
		'class' => 'about-me'
	),
	array(
		'text' => 'How old are you?',
		'class' => 'about-me'
	),
	array(
		'text' => 'Where are you',
		'class' => 'about-me'
	),
	array(
		'text' => 'What\'s the time now?',
		'class' => 'information-time'
	),
	array(
		'text' => 'What\'s day today?',
		'class' => 'information-time'
	),
	array(
		'text' => 'What\'s day today?',
		'class' => 'information-time'
	)
);

$naive_bayes = new Algorithm\Naive_Bayes\Text_Classification;

$naive_bayes->training($data);

echo $naive_bayes->predict('Hello sir What\'s time now'); // information-time

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固