2017 © Pedro Peláez
 

library wordbreaker

Word breaker is Thai wording separator for using with fulltext software.

image

teepluss/wordbreaker

Word breaker is Thai wording separator for using with fulltext software.

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel Thai Word Breaker.

Wordbreaker is a thai wording separator., (*1)

This package is just a wrapper from PhlongTaIam: PHP Thai word breaker, (*2)

Installation

To get the lastest version of Wordbreaker simply require it in your composer.json file., (*3)

"teepluss/wordbreaker": "dev-master"

You'll then need to run composer install to download it and have the autoloader updated., (*4)

Once Wordbreaker is installed you need to register the service provider with the application. Open up app/config/app.php and find the providers key., (*5)

'providers' => array(

    'Teepluss\Wordbreaker\WordbreakerServiceProvider'

)

Theme also ships with a facade which provides the static syntax for creating collections. You can register the facade in the aliases key of your app/config/app.php file., (*6)

'aliases' => array(

    'Wordbreaker' => 'Teepluss\Wordbreaker\Facades\Wordbreaker',

)

Publish config using artisan CLI., (*7)

php artisan config:publish teepluss/wordbreaker

Usage

// Append dictionary.
$source = [
    'ทดสอบ',
    'ประโยค',
    'ภาษาไทย',
    'ยาว',
    'แตก',
    'คำ'
];

Wordbreaker::add($source);

// Separate sentence into word.

$text = 'ทดสอบการแตกคำจากประโยคที่มีความยาว และติดกันมากๆ ในภาษาไทย';

$w = Wordbreaker::make($text);

var_dump($w);

Support or Contact

If you have some problem, Contact teepluss@gmail.com, (*8)

Support via PayPal, (*9)

The Versions

24/11 2014

dev-master

9999999-dev https://github.com/teepluss/laravel-wordbreaker

Word breaker is Thai wording separator for using with fulltext software.

  Sources   Download

MIT

The Requires

 

laravel laravel4 fulltext tokenizer

24/11 2014

v0.1

0.1.0.0 https://github.com/teepluss/laravel-wordbreaker

Word breaker is Thai wording separator for using with fulltext software.

  Sources   Download

MIT

The Requires

 

laravel laravel4 fulltext tokenizer