2017 © Pedro Peláez
 

library vic-word

vic word

image

xu42/vic-word

vic word

  • Wednesday, December 27, 2017
  • by xu42
  • Repository
  • 1 Watchers
  • 3 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 39 Forks
  • 0 Open issues
  • 3 Versions
  • 100 % Grown

The README.md

VicWord

中文分词, (*1)

Installing

require library, (*2)

composer require xu42/vic-word

Usage

  1. get word

// dict file path $dictPath = '/tmp/dict.igb'; //长度优先分词 (new VicWord($dictPath))->getWord('聚知台是一个及时沟通工具'); //细切分 (new VicWord($dictPath))->getShortWord('聚知台是一个及时沟通工具'); //自动 这种方法最耗时 (new VicWord($dictPath))->getAutoWord('聚知台是一个及时沟通工具');
  1. add dict

// dict file path $dictPath = '/tmp/dict.igb'; // 添加词库 (new VicDict($dictPath))->add('中国', n);

License

Apache 2.0, (*3)

The Versions

27/12 2017

dev-master

9999999-dev https://github.com/xu42/VicWord

vic word

  Sources   Download

Apache 2.0

word vic

27/12 2017

1.0.0

1.0.0.0 https://github.com/xu42/VicWord

vic word

  Sources   Download

Apache 2.0

word vic

27/12 2017

dev-hotfix/composer

dev-hotfix/composer https://github.com/xu42/VicWord

vic word

  Sources   Download

Apache 2.0

word vic