{"id":1998,"date":"2016-08-28T19:03:16","date_gmt":"2016-08-28T10:03:16","guid":{"rendered":"http:\/\/appsweets.net\/blog\/?p=1998"},"modified":"2016-08-29T03:54:05","modified_gmt":"2016-08-28T18:54:05","slug":"enable-mecab-on-xrea-server","status":"publish","type":"post","link":"https:\/\/appsweets.net\/blog\/2016\/08\/28\/enable-mecab-on-xrea-server\/","title":{"rendered":"Enable mecab on xrea server"},"content":{"rendered":"<div class=\"db9cc8cdb64025d13c1cc9dad0a0e262\" data-index=\"1\" style=\"float: left; margin: 16px 16px 16px 0;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-5825700137064158\";\r\n\/* 250sq, appsweets-blog *\/\r\ngoogle_ad_slot = \"4837931762\";\r\ngoogle_ad_width = 250;\r\ngoogle_ad_height = 250;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n<p>\u307c\u3061\u307c\u3061<a href=\"https:\/\/appsweets.net\/abeani\">\u3042\u3079\u2606\u30a2\u30cb<\/a>\u306b\u691c\u7d22\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u305f\u3044\u3002\u3053\u306e\u6a5f\u80fd\u306f:<\/p>\n<ul>\n<li>\u5f53\u65e5\u304b\u30891\u9031\u9593\u5148\u307e\u3067\u306e\u7bc4\u56f2\u5185\u3067<\/li>\n<li>\u30bf\u30a4\u30c8\u30eb\u3001\u8aac\u660e\u306b\u542b\u307e\u308c\u308b\u4efb\u610f\u306e\u6587\u5b57\u5217\u3092\u5168\u6587\u691c\u7d22\u3059\u308b<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u4ed5\u69d8\u306b\u3057\u3066\u304a\u3053\u3046\u3002\u307e\u305a\u30b5\u30fc\u30d0\u5074\u3067\u5fc5\u8981\u306a\u3082\u306e\u3092\u8003\u3048\u308b\u3068\u3068\u308a\u3042\u3048\u305a\u306f\u5168\u6587\u691c\u7d22\u6a5f\u80fd\u3092\u5099\u3048\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3060\u3002\u4ee5\u524d<a href=\"http:\/\/appsweets.net\/tatelog\/dat\/\">\u30bf\u30c6\u30ed\u30b0<\/a>\u3092\u4f5c\u3063\u305f\u6642\u306f MySQL \u3092\u4f7f\u3063\u305f\u3002\u3057\u304b\u3057 xrea \u30b5\u30fc\u30d0\u4e0a\u306e MySQL \u3068\u3044\u3046\u306e\u306f\u3001\u5f53\u7136\u3060\u304c\u30eb\u30fc\u30c8\u30e6\u30fc\u30b6\u306e\u6a29\u9650\u304c\u5fc5\u8981\u306a\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306f\u4e00\u5207\u3067\u304d\u306a\u3044\u306e\u304c\u30cd\u30c3\u30af\u3060\uff08\u5b9f\u306f\u88cf\u6280\u304c\u306a\u304f\u3082\u306a\u3044\u306e\u3060\u304c\u3001\u305d\u308c\u3092\u3053\u3053\u3067\u306f\u516c\u958b\u3067\u304d\u306a\u3044\uff09\u3002\u30bf\u30c6\u30ed\u30b0\u306e\u5834\u5408\u3082\u5168\u6587\u691c\u7d22\u7528\u306e\u30e1\u30e2\u30ea\u306e\u5272\u308a\u5f53\u3066\u3092\u3082\u3046\u3061\u3087\u3063\u3068\u5897\u3084\u3057\u305f\u3044\u306e\u3060\u304c\u3001\u3044\u304b\u3093\u3068\u3082\u3057\u304c\u305f\u3044\u3002\u305d\u3046\u3044\u3046\u8a33\u3067\u4eca\u56de\u306f SQLite \u3092\u4f7f\u3063\u3066\u307f\u305f\u3044\u3002<\/p>\n<p>\u6b21\u306b\u5fc5\u8981\u306a\u306e\u306f\u3001\u65e5\u672c\u8a9e\u3092\u5f62\u614b\u7d20\u89e3\u6790\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3060\u3002\u30bf\u30c6\u30ed\u30b0\u306e\u5834\u5408\u306f\u5927\u639b\u304b\u308a\u306a\u6a5f\u69cb\u3092\u4f7f\u308f\u305a\u30012-gram \u3067\u6e08\u307e\u305b\u305f\u306e\u3060\u304c\u3084\u306f\u308a\u3053\u306e\u3078\u3093\u306f\u304d\u3063\u3061\u308a\u3084\u308a\u305f\u3044\u3002\u30d5\u30ea\u30fc\u306e\u5f62\u614b\u7d20\u89e3\u6790\u5668\u3068\u3044\u3048\u3070\u306a\u3093\u3068\u3044\u3063\u3066\u3082 <a href=\"http:\/\/taku910.github.io\/mecab\/\" target=\"_blank\">Mecab<\/a> \u3068\u304b <a href=\"http:\/\/chasen.naist.jp\/hiki\/ChaSen\/\" target=\"_blank\">Chasen<\/a> \u3068\u304b\u3060\u3002\u3053\u308c\u3089\u3092 xrea \u4e0a\u3067\u4f7f\u3048\u308b\u3068\u5b09\u3057\u3044\u3002\u3055\u3089\u306b\u6b32\u3092\u8a00\u3048\u3070\u3001\u3053\u308c\u3089\u3092\u5b50\u30d7\u30ed\u30bb\u30b9\u3068\u3057\u3066\u547c\u3073\u51fa\u3059\u306e\u3067\u306f\u306a\u304f PHP \u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3\u3068\u3057\u3066\u6271\u3048\u308b\u3068\u306a\u304a\u826f\u3044\u3002\u305d\u306e\u5834\u5408\u306e\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u306f <a href=\"https:\/\/github.com\/rsky\/php-mecab\" target=\"_blank\">php-mecab<\/a> \u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<p>\u3055\u3066\u3001\u5b9f\u306f xrea \u30b5\u30fc\u30d0\u306b\u306f\u3059\u3067\u306b mecab \u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3002\u305f\u3060\u3057\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u306f 0.93 \u3068\u82e5\u5e72\u53e4\u3044\u3002\u307e\u305f\u3001PHP \u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u306f\u7528\u610f\u3055\u308c\u3066\u3044\u306a\u3044\u3002\u306a\u306e\u3067\u4eca\u56de\u306f\u3053\u308c\u306f\u4f7f\u308f\u305a\u3001\u81ea\u524d\u3067 mecab \u3068 php-mecab \u3092 xrea \u30b5\u30fc\u30d0\u4e0a\u3067\u30d3\u30eb\u30c9\u3059\u308b\u3053\u3068\u306b\u3057\u3088\u3046\u3002\u5e78\u3044 xrea \u30b5\u30fc\u30d0\u306b\u306f ssh \u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u3001\u307e\u305f gcc \u7b49\u3005\u306e\u30d3\u30eb\u30c9\u74b0\u5883\u53ca\u3073 PHP \u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3\u3092\u30d3\u30eb\u30c9\u3059\u308b\u305f\u3081\u306e phpize \u30c4\u30fc\u30eb\u306a\u3069\u3082\u3042\u3089\u304b\u3058\u3081\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<p><b>Mecab \u3068\u8f9e\u66f8\u306e\u30d3\u30eb\u30c9<\/b><\/p>\n<ul>\n<li>\u4f5c\u696d\u7528\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4e88\u3081\u6398\u3063\u3066\u304a\u304f\u3002\u4eca\u56de\u306f ~\/devel (\/virtual\/akahuku\/devel) \u3068\u3057\u305f<\/li>\n<li><a href=\"http:\/\/taku910.github.io\/mecab\/#download\" target=\"_blank\">Mecab \u516c\u5f0f<\/a>\u304b\u3089\u30bd\u30fc\u30b9\u3092\u843d\u3068\u3057\u3066\u304f\u308b<\/li>\n<li><code lang=\"bash\"><br \/>\n$ tar zxf mecab-0.996.tar.gz<br \/>\n$ cd mecab-0.996<br \/>\n$ .\/configure --prefix=$HOME --enable-utf8-only --with-charset=utf8<br \/>\n$ make<br \/>\n$ make check<br \/>\n$ make install<br \/>\n<\/code><\/li>\n<li>\u540c\u69d8\u306b\u8f9e\u66f8\u3092\u843d\u3068\u3057\u3066\u304f\u308b: \u3068\u308a\u3042\u3048\u305a\u4eca\u56de\u306f IPA \u8f9e\u66f8\u3092\u843d\u3068\u3057\u305f<\/li>\n<li><code lang=\"bash\"><br \/>\n$ tar zxf mecab-ipadic-2.7.0-20070801.tar.gz<br \/>\n$ cd mecab-ipadic-2.7.0-20070801<br \/>\n$ .\/configure --prefix=$HOME --with-mecab-config=\/virtual\/akahuku\/bin\/mecab-config --with-charset=utf8<br \/>\n$ make<br \/>\n$ make install<br \/>\n<\/code><\/li>\n<\/ul>\n<p><b>php-mecab \u306e\u30d3\u30eb\u30c9<\/b><br \/>\nPHP \u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3\u3092\u30d3\u30eb\u30c9\u3059\u308b\u306b\u306f\u3001\u524d\u8ff0\u306e phpize \u3092\u4f7f\u3046\u3002\u3053\u308c\u81ea\u4f53\u306f\u3061\u3087\u3063\u3068\u3057\u305f\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3001php \u306e\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u7b49\u3005\u3092\u8d70\u67fb\u3057\u3064\u3064 configure \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u751f\u6210\u3059\u308b\u3002\u3053\u3053\u3067\u56f0\u3063\u305f\u3053\u3068\u304c 1 \u3064\u3042\u308b\u3002xrea \u306e\u30b5\u30fc\u30d0\u306f\u8907\u6570\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e PHP \u304c\u540c\u6642\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u3066\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u304b\u3089\u3069\u308c\u3092\u4f7f\u7528\u3059\u308b\u304b\u9078\u629e\u3067\u304d\u308b\u306e\u3060\u304c\u3001\u3069\u308c\u3092\u9078\u629e\u3057\u3066\u3082 \/usr\/local\/include\/php \u4ee5\u4e0b\u306e\u5185\u5bb9\u306f\u6700\u3082\u53e4\u3044 php5.3 \u306e\u3082\u306e\u306e\u307e\u307e\u306a\u306e\u3067\u3042\u308b\u3002\u5f93\u3063\u3066\u4ed6\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e PHP \u5411\u3051\u306b\u666e\u901a\u306b make \u3059\u308b\u3068 php \u672c\u4f53\u3068\u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u4e0d\u6574\u5408\u304c\u8d77\u3053\u308a\u8a8d\u8b58\u3055\u308c\u306a\u3044\u3002\u3061\u306a\u307f\u306b appsweets.net \u3067\u4f7f\u7528\u3057\u3066\u3044\u308b PHP \u306f 5.5.35 \u3060\u3002\u305d\u3053\u3067:<\/p>\n<ul>\n<li><a href=\"http:\/\/php.net\/releases\/\" target=\"_blank\">PHP \u516c\u5f0f<\/a>\u304b\u3089\u8a72\u5f53 PHP \u306e\u30bd\u30fc\u30b9\u3092\u843d\u3068\u3057\u3066\u3001\u5c55\u958b\u3057\u3066\u3001configure <b>*\u3060\u3051*<\/b> \u3084\u3063\u3066\u304a\u304f<\/li>\n<li>php-mecab \u306e\u30bd\u30fc\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff08\u4eca\u56de\u306f \/virtual\/akahuku\/devel\/php-mecab\/mecab\/\uff09\u3067<br \/>\n<code lang=\"bash\"><br \/>\n$ php55ize<br \/>\n$ .\/configure --prefix=$HOME --php-config=\/usr\/bin\/php55-config --with-mecab=\/virtual\/akahuku\/bin\/mecab-config<br \/>\n<\/code><\/li>\n<li>\u751f\u6210\u3055\u308c\u305f Makefile \u3092 vi \u3067\u958b\u304d\u3001\/usr\/local\/include\/php \u3092\u542b\u3093\u3067\u3044\u308b\u30de\u30af\u30ed\u306e\u8a72\u5f53\u90e8\u5206\u3092\u3059\u3079\u3066\u81ea\u524d\u306e PHP \u306e\u30bd\u30fc\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff08\u4eca\u56de\u306f \/virtual\/akahuku\/devel\/php-5.5.35\uff09\u306b\u7f6e\u304d\u63db\u3048\u308b<\/li>\n<li><code lang=\"bash\"><br \/>\n$ make<br \/>\n$ make test<br \/>\n<\/code><\/li>\n<li>make install \u306f\u3057\u306a\u3044\uff08\u3068\u3044\u3046\u304b\u6a29\u9650\u306e\u95a2\u4fc2\u4e0a\u3067\u304d\u306a\u3044\uff09\u3002modules \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u51fa\u529b\u3055\u308c\u305f mecab.so \u3092\u305d\u306e\u307e\u307e\u4f7f\u3046<\/li>\n<\/li>\n<\/ul>\n<p><b>PHP \u3078\u306e\u7d44\u307f\u8fbc\u307f<\/b><br \/>\nxrea \u306e\u5834\u5408\u3001\u73fe\u5728\u306f PHP \u3092\u5404\u30e6\u30fc\u30b6\u306e ~\/.fast-cgi-bin \u4ee5\u4e0b\u306e php.ini \u53ca\u3073\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3088\u3063\u3066\u8d77\u52d5\u3055\u305b\u3066\u3044\u308b\u3002php55.ini \u3092 vi \u3067\u958b\u304d<br \/>\n<code><br \/>\nextension=\"\/virtual\/akahuku\/devel\/php-mecab\/mecab\/modules\/mecab.so\"<br \/>\nmecab.default_dicdir=\"\/virtual\/akahuku\/lib\/mecab\/dic\/ipadic\"<br \/>\n<\/code><br \/>\n\u3092\u8ffd\u8a18\u3002<\/p>\n<p>\u3042\u3068\u306f fcgi \u306b\u3088\u308b php \u304c\u518d\u751f\u6210\u3055\u308c\u305f\u6642\u306b phpinfo(); \u3057\u3066 mecab \u304c\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3002<\/p>\n<p>* * *<\/p>\n<p>\u3068\u3044\u3046\u611f\u3058\u306b\u306a\u308b\u3002\u3053\u308c\u306b\u3088\u308a\u3001<br \/>\n<code lang=\"php\"><br \/>\n$mecab = new MeCab_Tagger(\"\u3059\u3082\u3082\u3082\u3082\u3082\u3082\u3082\u3082\u306e\u3046\u3061\");<br \/>\necho $mecab->parse($str);<br \/>\n<\/code><br \/>\n\u3068\u3044\u3046\u3088\u3046\u306b PHP \u304b\u3089\u76f4\u63a5 Mecab \u306e\u6a5f\u80fd\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u3002\u3053\u3053\u3067\u66f4\u306b\u3082\u3046\u3072\u3068\u3072\u306d\u308a\u3042\u308b\u3002PHP \u306e SQLite \u306b\u306f\u9762\u767d\u3044\u6a5f\u80fd\u304c\u3042\u308b\u3002SQLite3#createFunction() \u3067 SQL \u306e\u30af\u30a8\u30ea\u5185\u3067\u4f7f\u7528\u3067\u304d\u308b\u95a2\u6570\u3092 PHP \u306e\u95a2\u6570\u3067\u81ea\u7531\u306b\u5b9a\u7fa9\u3067\u304d\u308b\u306e\u3067\u3042\u308b\u3002\u3064\u307e\u308a\u3001PHP \u5074\u3067<br \/>\n<code lang=\"php\"><br \/>\nfunction php_tokenize ($arg) {<br \/>\n  return (new Mecab_Tagger([\"-O\" => \"wakati\"]))->parse($arg);<br \/>\n}<br \/>\n$db = new SQLite3(\"foo.sqlite\");<br \/>\n$db->createFunction(\"tokenize\", \"php_tokenize\");<br \/>\n<\/code><br \/>\n\u306a\u3069\u3068\u3059\u308b\u3068\u3001\u30af\u30a8\u30ea\u3067\u76f4\u63a5<br \/>\n<code lang=\"sql\"><br \/>\ninsert into table (content, tokens) values (\"\u3059\u3082\u3082\u3082\u3082\u3082\u3082\u3082\u3082\u306e\u3046\u3061\", tokenize(\"\u3059\u3082\u3082\u3082\u3082\u3082\u3082\u3082\u3082\u306e\u3046\u3061\"));<br \/>\n<\/code><br \/>\n\u306a\u3069\u3068\u66f8\u3051\u308b\u3002\u3053\u308c\u306f\u9762\u767d\u3044\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c PHP \u3068\u540c\u3058\u30d7\u30ed\u30bb\u30b9\u3067\u52d5\u3044\u3066\u3044\u308b\u304b\u3089\u3067\u304d\u308b\u82b8\u5f53\u3060\u3002\u6587\u5b57\u5217\u306e\u30de\u30fc\u30b7\u30e3\u30ea\u30f3\u30b0\u3068\u304b\u554f\u984c\u306a\u3044\u306e\u304b\u82e5\u5e72\u5fc3\u914d\u304c\u306a\u3044\u3053\u3068\u3082\u306a\u3044\u304c\u2026\u3002<\/p>\n<p>\u3068\u3053\u308d\u3067 createFunction()\u3001createAggregate()\u3001createCollation() \u3092\u4f7f\u3046\u969b\u306b\u306f\u7b2c\u4e00\u306b\u6c17\u3092\u3064\u3051\u308b\u3079\u304d\u3053\u3068\u304c\u3042\u308b\u3002\u3082\u3057\u305d\u306e PHP \u5074\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u5185\u3067\u4f8b\u5916\u304c\u767a\u751f\u3057\u3066 PHP \u306e\u5b9f\u884c\u304c\u4e2d\u65ad\u3055\u308c\u305f\u5834\u5408\u3001SQLite \u5074\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306f\u6b63\u3057\u304f\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3055\u308c\u305a\u3001\u30b8\u30e3\u30fc\u30ca\u30eb\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u3089\u308c\u305f\u307e\u307e\u3001\u305d\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u81ea\u8eab\u306f\u30ed\u30c3\u30af\u3055\u308c\u305f\u307e\u3093\u307e\uff08\u30ed\u30c3\u30af\u5143\u306f\u3001mod_php \u74b0\u5883\u3067\u3042\u308c\u3070 http \u30b5\u30fc\u30d0\u3060\u3002fcgi \u74b0\u5883\u3067\u306f\u77e5\u3089\u306a\u3044\uff09\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3002\u3064\u307e\u308a\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u5185\u3067\u306f\u51fa\u6765\u3046\u308b\u9650\u308a\u30ac\u30c1\u30ac\u30c1\u306b\u30a8\u30e9\u30fc\u30c1\u30a7\u30c3\u30af\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3060\u3002<\/p>\n<p>\u306a\u3069\u3068\u3055\u3063\u304d\u307e\u3067\u3084\u3063\u3066\u3044\u305f\u3089\u3001\u3044\u3064\u306e\u9593\u306b\u304b\u3075\u305f\u3070\u304c\u5168\u6ec5\u3057\u3066\u3044\u305f\u3002<br \/>\n<a href=\"http:\/\/appsweets.net\/blog\/wp-content\/uploads\/2016\/08\/serverstat.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/appsweets.net\/blog\/wp-content\/uploads\/2016\/08\/serverstat-340x640.png\" alt=\"serverstat\" width=\"340\" height=\"640\" class=\"aligncenter size-medium wp-image-2002\" srcset=\"https:\/\/appsweets.net\/blog\/wp-content\/uploads\/2016\/08\/serverstat-340x640.png 340w, https:\/\/appsweets.net\/blog\/wp-content\/uploads\/2016\/08\/serverstat-768x1444.png 768w, https:\/\/appsweets.net\/blog\/wp-content\/uploads\/2016\/08\/serverstat-544x1024.png 544w, https:\/\/appsweets.net\/blog\/wp-content\/uploads\/2016\/08\/serverstat.png 930w\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" \/><\/a><br \/>\n\u306a\u306b\u3053\u306e\u2026\u306a\u306b\uff1f<\/p>\n<div class=\"db9cc8cdb64025d13c1cc9dad0a0e262\" data-index=\"1\" style=\"float: left; margin: 16px 16px 16px 0;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-5825700137064158\";\r\n\/* 250sq, appsweets-blog *\/\r\ngoogle_ad_slot = \"4837931762\";\r\ngoogle_ad_width = 250;\r\ngoogle_ad_height = 250;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>\u307c\u3061\u307c\u3061\u3042\u3079\u2606\u30a2\u30cb\u306b\u691c\u7d22\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u305f\u3044\u3002\u3053\u306e\u6a5f\u80fd\u306f: \u5f53\u65e5\u304b\u30891\u9031\u9593\u5148\u307e\u3067\u306e\u7bc4\u56f2\u5185\u3067 \u30bf\u30a4\u30c8\u30eb\u3001\u8aac\u660e\u306b\u542b\u307e\u308c\u308b\u4efb\u610f\u306e\u6587\u5b57\u5217\u3092\u5168\u6587\u691c\u7d22\u3059\u308b \u3068\u3044\u3046\u4ed5\u69d8\u306b\u3057\u3066\u304a\u3053\u3046\u3002\u307e\u305a\u30b5\u30fc\u30d0\u5074\u3067\u5fc5\u8981\u306a\u3082\u306e\u3092\u8003\u3048\u308b\u3068\u3068\u308a\u3042\u3048\u305a\u306f\u5168\u6587\u691c\u7d22\u6a5f\u80fd\u3092\u5099\u3048\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3060\u3002\u4ee5\u524d\u30bf\u30c6\u30ed\u30b0\u3092\u4f5c\u3063\u305f\u6642\u306f MySQL \u3092\u4f7f\u3063\u305f\u3002\u3057\u304b\u3057 xrea \u30b5\u30fc\u30d0\u4e0a\u306e MySQL \u3068\u3044\u3046\u306e\u306f\u3001\u5f53\u7136\u3060\u304c\u30eb\u30fc\u30c8\u30e6\u30fc\u30b6\u306e\u6a29\u9650\u304c\u5fc5\u8981\u306a\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u306f\u4e00\u5207\u3067\u304d\u306a\u3044\u306e\u304c\u30cd\u30c3\u30af\u3060\uff08\u5b9f\u306f\u88cf\u6280\u304c\u306a\u304f\u3082\u306a\u3044\u306e\u3060\u304c\u3001\u305d\u308c\u3092\u3053\u3053\u3067\u306f\u516c\u958b\u3067\u304d\u306a\u3044\uff09\u3002\u30bf\u30c6\u30ed\u30b0\u306e\u5834\u5408\u3082\u5168\u6587\u691c\u7d22\u7528\u306e\u30e1\u30e2\u30ea\u306e\u5272\u308a\u5f53\u3066\u3092\u3082\u3046\u3061\u3087\u3063\u3068\u5897\u3084\u3057\u305f\u3044\u306e\u3060\u304c\u3001\u3044\u304b\u3093\u3068\u3082\u3057\u304c\u305f\u3044\u3002\u305d\u3046\u3044\u3046\u8a33\u3067\u4eca\u56de\u306f SQLite \u3092\u4f7f\u3063\u3066\u307f\u305f\u3044\u3002 \u6b21\u306b\u5fc5\u8981\u306a\u306e\u306f\u3001\u65e5\u672c\u8a9e\u3092\u5f62\u614b\u7d20\u89e3\u6790\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3060\u3002\u30bf\u30c6\u30ed\u30b0\u306e\u5834\u5408\u306f\u5927\u639b\u304b\u308a\u306a\u6a5f\u69cb\u3092\u4f7f\u308f\u305a\u30012-gram \u3067\u6e08\u307e\u305b\u305f\u306e\u3060\u304c\u3084\u306f\u308a\u3053\u306e\u3078\u3093\u306f\u304d\u3063\u3061\u308a\u3084\u308a\u305f\u3044\u3002\u30d5\u30ea\u30fc\u306e\u5f62\u614b\u7d20\u89e3\u6790\u5668\u3068\u3044\u3048\u3070\u306a\u3093\u3068\u3044\u3063\u3066\u3082 Mecab \u3068\u304b Chasen \u3068\u304b\u3060\u3002\u3053\u308c\u3089\u3092 xrea \u4e0a\u3067\u4f7f\u3048\u308b\u3068\u5b09\u3057\u3044\u3002\u3055\u3089\u306b\u6b32\u3092\u8a00\u3048\u3070\u3001\u3053\u308c\u3089\u3092\u5b50\u30d7\u30ed\u30bb\u30b9\u3068\u3057\u3066\u547c\u3073\u51fa\u3059\u306e\u3067\u306f\u306a\u304f PHP \u30a8\u30af\u30b9\u30c6\u30f3\u30b7\u30e7\u30f3\u3068\u3057\u3066\u6271\u3048\u308b\u3068\u306a\u304a\u826f\u3044\u3002\u305d\u306e\u5834\u5408\u306e\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u306f php-mecab \u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u308b\u3002 \u3055\u3066\u3001\u5b9f\u306f xrea \u30b5\u30fc\u30d0\u306b\u306f\u3059\u3067\u306b mecab \u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3002\u305f\u3060\u3057\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u306f 0.93 \u3068\u82e5\u5e72\u53e4\u3044\u3002\u307e\u305f\u3001PHP \u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u306f\u7528\u610f\u3055\u308c\u3066\u3044\u306a\u3044\u3002\u306a\u306e\u3067\u4eca\u56de\u306f\u3053\u308c\u306f\u4f7f\u308f\u305a\u3001\u81ea\u524d\u3067 mecab \u3068 php-mecab \u3092 xrea \u30b5\u30fc\u30d0\u4e0a\u3067\u30d3\u30eb\u30c9\u3059\u308b\u3053\u3068\u306b\u3057\u3088\u3046\u3002\u5e78\u3044 xrea \u30b5\u30fc\u30d0\u306b\u306f &hellip; <a href=\"https:\/\/appsweets.net\/blog\/2016\/08\/28\/enable-mecab-on-xrea-server\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[52,30,51],"class_list":["post-1998","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-mecab","tag-php","tag-sqlite"],"_links":{"self":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts\/1998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/comments?post=1998"}],"version-history":[{"count":7,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts\/1998\/revisions"}],"predecessor-version":[{"id":2007,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/posts\/1998\/revisions\/2007"}],"wp:attachment":[{"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/media?parent=1998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/categories?post=1998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/appsweets.net\/blog\/wp-json\/wp\/v2\/tags?post=1998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}