Last active
May 4, 2017 06:36
-
-
Save Sankame/d0ff28564c451c4372cf to your computer and use it in GitHub Desktop.
phpからmecabを利用する。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
dl('mecab.so'); | |
$t = new MeCab_Tagger(); | |
$str = 'すもももももももものうち'; | |
echo $t->parse($str); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment