dev-master
9999999-devMulti function Natural Language Processing system.
MIT
The Requires
- php >=5.5.9
- illuminate/support 5.*
by Brett Cao
Multi function Natural Language Processing system.
Natural Language Processing is one of the important directions in the field of computer science and artificial intelligence. It can be used to realize the effective communication between people and computer in the natural language of the various theories and methods. Natural Language Processing is a fusion of linguistics, computer science, mathematics in one of the science. Therefore, the research in this field will involve natural language, that is, people's daily use of language, so it has a close relationship with the study of linguistics, but there are important differences. Natural Language Processing is not a general study of natural language, but in the development of natural language communication can effectively achieve the computer system, especially the software system. So it's a part of computer science., (*1)
This package was created for a personal project and it's still a work in progress. I don't expect it's API to change however., (*2)
composer.json
file and run composer update
:{ "require": { "mozzos/nlptool": "dev-master" } }
Add the service provider to your app/config/app.php
file, inside the providers
array: Mozzos\NLPTool\Providers\NLPToolServiceProvider::class
, (*3)
Publish the config file by running the following command in the terminal: `php artisan config:publish mozzos/nlptool, (*4)
Edit the config files (located in config/nlp.php
) etc., (*5)
There's only one step to tell your models that they should use Bouncy. Just add a trait! I'll be using a fictional Product
model for the examples., (*6)
use Mozzos\NLPTool\NLPTool; class Product extends Eloquent { use NLPTool; // ...other Eloquent attributes // or methods. }
An example participle;:, (*7)
$res = $this->ws(strip_tags($request->content . "。" . $request->title))->get();
The $params
array is exactly as NLP expects for it to build a JSON request. etc., (*8)
An example participle;:, (*9)
$res = $this->analysis(strip_tags($request->content . "。" . $request->title))->group(3);
The $params
array is exactly as NLP expects for it to build a JSON request. etc., (*10)
Multi function Natural Language Processing system.
MIT