{"id":19535952,"url":"https://github.com/miyako/4d-plugin-mecab-v2","last_synced_at":"2025-08-07T22:38:53.596Z","repository":{"id":147172391,"uuid":"161281322","full_name":"miyako/4d-plugin-mecab-v2","owner":"miyako","description":"4D implementation of MeCab","archived":false,"fork":false,"pushed_at":"2023-03-20T14:50:44.000Z","size":121481,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-08T17:57:13.662Z","etag":null,"topics":["4d-plugin"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miyako.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-11T05:23:13.000Z","updated_at":"2024-08-27T05:00:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"c89e7133-17ce-4bac-bee5-331c92fdf16b","html_url":"https://github.com/miyako/4d-plugin-mecab-v2","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-mecab-v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-mecab-v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-mecab-v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2F4d-plugin-mecab-v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miyako","download_url":"https://codeload.github.com/miyako/4d-plugin-mecab-v2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240789060,"owners_count":19857750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["4d-plugin"],"created_at":"2024-11-11T02:20:24.276Z","updated_at":"2025-02-26T04:18:45.825Z","avatar_url":"https://github.com/miyako.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"![version](https://img.shields.io/badge/version-19%2B-5682DF)\n![platform](https://img.shields.io/static/v1?label=platform\u0026message=mac-intel%20|%20mac-arm%20|%20win-64\u0026color=blue)\n[![license](https://img.shields.io/github/license/miyako/4d-plugin-mecab-v2)](LICENSE)\n![downloads](https://img.shields.io/github/downloads/miyako/4d-plugin-mecab-v2/total)\n\n# 4d-plugin-mecab-v2\n4D implementation of [MeCab](http://taku910.github.io/mecab/)\n\n### できること\n\n* システム辞書のコンパイル（コールバックメソッド付き）\n\n* ユーザー辞書のコンパイル（コールバックメソッド付き）\n\n* 辞書の切り替え（システム辞書１＋任意数のユーザー辞書）\n\n### TODO\n\n[オリジナル辞書/コーパスからのパラメータ推定](https://taku910.github.io/mecab/learn.html)に必要な``mecab-cost-train``および``mecab-dict-gen``に相当するコマンド\n\n## Install\n\nプラグインには辞書ファイルが含まれていません。\n\n下記のファイルをダウンロードしておき，スタートアップで``MeCab SET MODEL``を実行してください。\n\nサンプルプログラムの[Resources](https://github.com/miyako/4d-plugin-mecab-v2/releases/download/2.2.0/Resources.zip)フォルダーには，これらのファイルが含まれています。  \n\n* [ipadic-utf8-compiled](https://github.com/miyako/4d-plugin-mecab-v2/releases/download/mecab-ipadic-utf8-compiled/ipadic.zip)\n\n* [jumandic-utf8-compiled](https://github.com/miyako/4d-plugin-mecab-v2/releases/download/mecab-jumandic-utf8-compiled/jumandic.zip)\n\n```\nC_OBJECT($model)\n$model:=JSON Parse(MeCab Get model ;Is object)\n\nIf ($model=Null)\n\t\n\t$model:=New object\n\t$model.dicdir:=Get 4D folder(Current resources folder)+\"jumandic\"\n\t\n\tMeCab SET MODEL (JSON Stringify($model))\n\t\nend if\n```\n\nコスト自動計算モード（``assignUserDictionaryCosts``）でユーザー辞書を作成するためには\n\n* ``rewrite.def``  \n* ``char.bin``  \n* ``model.bin``  \n* ``feature.def``  \n\nが必要です。\n\n``rewrite.def``と``char.bin``は辞書に含まれています。\n\n``model.bin``と``feature.def``は下記からダウンロードすることができます。\n\nサンプルプログラムのResourcesフォルダーには，これらのファイルが含まれています。  \n\n* [mecab-ipadic-utf8-conf](https://github.com/miyako/4d-plugin-mecab-v2/releases/download/mecab-ipadic-utf8-conf/ipadic.utf8.zip)\n\n* [mecab-jumandic-utf8-conf](https://github.com/miyako/4d-plugin-mecab-v2/releases/download/mecab-jumandic-utf8-conf/jumandic.utf8.zip)\n\nシステム辞書から``model.bin``を作成するためには，``model.def``が必要です。IPA辞書の学習モデルはmecabやmecab-ipadicのソースコードと一緒に配布されていませんでした。\n\n* [mecab-ipadic-2.7.0-20070801.model](https://github.com/miyako/4d-plugin-mecab-v2/releases/download/ipa-model/mecab-ipadic-2.7.0-20070801.model)\n\nシステム辞書を作成するには，CSVファイルおよび設定ファイル群が必要です。公式版IPA辞書のように，EUC-JPのCSVから作成することもできますが，その場合，モデルファイルもEUC-JPとなるため，コスト自動計算モードでユーザー辞書を作成することができません。UTF-8版のCSVファイルは，下記からダウンロードすることができます。\n\nなお，サンプルプログラムは，これらのファイルがデスクトップにあるという前提で書かれています。\n\n* [mecab-jumandic-utf8.zip](https://github.com/miyako/4d-plugin-mecab-v2/releases/download/mecab-jumandic-utf8-erc/mecab-jumandic-utf8.zip)\n\n* [mecab-ipadic-utf8.zip](https://github.com/miyako/4d-plugin-mecab-v2/releases/download/mecab-ipadic-utf8-src/mecab-ipadic-utf8.zip)\n\n## Syntax\n\n```\nmodel:=MeCab Get model\n```\n\nParameter|Type|Description\n------------|------------|----\nmodel|TEXT|``JSON``\n\n現在のmecab設定を返します。この設定は，アプリケーション全体，つまりすべてのプロセスに対して共通です。\n\n``dicdir``: システム辞書のディレクトリパス (``Path is system``)  \n``version``: ライブラリのバージョン文字列（``0.996``）  \n``dict[]``: 辞書情報（下記オブジェクトのコレクション）  \n\n``filename``: 辞書ファイル名 (``Path is POSIX``)  \n``charset``: 文字セット（``utf8``）  \n``size``: 登録語数  \n``type``: ``0`` システム辞書 ``1`` ユーザー辞書 ``2`` 未知語辞書  \n``lsize``: ``left``属性数  \n``rsize`` ``right``属性数  \n``version``: 辞書バージョン（``102``）  \n\n```\nMeCab SET MODEL (model)\n```\n\nParameter|Type|Description\n------------|------------|----\nmodel|TEXT|``JSON``\n\n``dicdir``: システム辞書のディレクトリパス (``Path is system``)  \n``userdic[]`` or ``userdic``: ユーザー辞書のファイルパス (``Path is system``)  \n\n* ``userdic``（任意）には，文字列または文字列のコレクションが渡せます。\n\n```\nresult:=MeCab (sentence)\n```\n\nParameter|Type|Description\n------------|------------|----\nsentence|TEXT|sentence\nresult|TEXT|``JSON``\n\n形態素分析の結果を返します。（下記オブジェクトのコレクション）\n\n``feature``: 素性  \n``value``: 表層形  \n``rcAttr``: 右連接状態番号 \n``lcAttr``: 左連接状態番号\n``cost``: コスト\n``posid``: 形態素ID  \n``char_type``: 文字種ID  \n``stat``: 形態素種類ID  \n``isbest``: 最適パス (``true`` ``false``)  \n\n素性CSVのフォーマット，各種IDは辞書依存です。\n\nipadic: 品詞,品詞細分類1,品詞細分類2,品詞細分類3,活用形,活用型,原形,読み,発音\n\n## 辞書を切り替えるには\n\n```  \n$model:=JSON Parse(MeCab Get model)\n\n$model.dicdir:=Path to object($model.dicdir;Path is system).parentFolder+\"jumandic\"\n\nMeCab SET MODEL (JSON Stringify($model))\n```\n\n## 形態素の配列を取り出すには\n\n```\n$sentence:=\"太郎は次郎が持っている本を花子に渡した。\"\n\n$result:=JSON Parse(MeCab($sentence);Is collection)\n$words:=$result.extract(\"value\")\n```\n\n\u003cimg width=\"800\" alt=\"2018-12-17 10 00 59\" src=\"https://user-images.githubusercontent.com/1725068/50061348-ce7c4c80-01e2-11e9-9443-8f29f0ffee17.png\"\u003e\n\n## N-best解を取り出すには\n\n```\n$sentence:=\"ははははははと笑った\"\n\nC_OBJECT($options)\n$options:=New object(\"nbest\";2;\"theta\";0.5)\n\n$results:=JSON Parse(MeCab ($sentence;JSON Stringify($options));Is collection)\n\nC_COLLECTION($result;$words)\n$words:=New collection()\n\nFor each ($result;$results)\n\t$words.push($result.extract(\"value\"))\nEnd for each \n```\n\n\u003cimg width=\"800\" alt=\"2018-12-17 11 30 13\" src=\"https://user-images.githubusercontent.com/1725068/50063356-64b66f80-01ef-11e9-901f-a07ebd8c17b5.png\"\u003e\n\n```\nMeCab INDEX DICTIONARY (options{;method})\n```\n\nParameter|Type|Description\n------------|------------|----\nmodel|TEXT|``JSON``\nmethod|TEXT|callback (TEXT;LONGINT;LONGINT;LONGINT)\n\nシステム辞書またはユーザー辞書を作成します。``mecab-dict-index``のようなものです。\n\n## コールバックメソッドの例\n\n```\nC_TEXT($1;$message)\nC_LONGINT($2;$event;$3;$current;$4;$total)\nC_BOOLEAN($0;$abort)\n\n$event:=$2\n\nCase of \n\t: ($event=1)  //open file\n\t\t\n\t\t$message:=\"open \"+$1\n\t\tMESSAGE($message)\n\t\t\n\t: ($event=2)  //create file\n\t\t\n\t\t$message:=\"create \"+$1\n\t\tMESSAGE($message)\n\t\t\n\t: ($event=3)  //emit double array\n\t\t\n\t\t$message:=\"emitting double array \"+String($3)+\"/\"+String($4)\n\t\tMESSAGE($message)\n\t\t\n\t: ($event=4)  //emit matrix\n\t\t\n\t\t$message:=\"emitting matrix \"+String($3)+\"x\"+String($4)\n\t\tMESSAGE($message)\n\t\t\n\t: ($event=-1)\n\t\t\n\t\t$message:=\"missing \"+$1\n\t\tMESSAGE($message)\n\t\t\n\t: ($event=-2)\n\t\t\n\t\t$message:=\"missing csv \"+$1\n\t\tMESSAGE($message)\n\t\t\n\t: ($event=-3)\n\t\t\n\t\t$message:=\"invalid model \"+$1\n\t\tMESSAGE($message)\n\t\t\n\t: ($event=-4)\n\t\t\n\t\t$message:=\"invalid csv \"+$1\n\t\tMESSAGE($message)\n\t\t\n\t: ($event=5)  //error open file\n\t\t\n\t\t$message:=\"error open \"+$1\n\t\tMESSAGE($message)\n\t\t\n\t: ($event=6)  //error create file\n\t\t\n\t\t$message:=\"error create \"+$1\n\t\tMESSAGE($message)\n\t\t\n\t: ($event=-7)\n\t\t\n\t\t$message:=\"invalid def \"+$1\n\t\tMESSAGE($message)\n\t\t\n\t: ($event=-8)\n\t\t\n\t\t$message:=\"invalid dicrc \"+$1\n\t\tMESSAGE($message)\n\t\t\n\t: ($event=-9)\n\t\t\n\t\t$message:=\"error write \"+$1\n\t\tMESSAGE($message)\n\t\t\nEnd case \n```\n\n## システム辞書を作成するには\n\n* 必須プロパティ\n\n``options.outdir``: 出力フォルダーパス  \n``options.sysdicdir``: 入力フォルダーパス（CSVファイルの場所）  \n``options.dicdir``: 設定フォルダーパス    \n\n* 任意プロパティ\n\n``options.configCharset``: 設定ファイルの文字コード（既定：``EUC-JP``）  \n``options.dictionaryCharset``: 入力CSVファイルの文字コード（既定：``EUC-JP``）  \n\n出力ファイルの文字コードはUTF-8固定です。\n\n``options.buildUnknown``: ``unk.dic``を出力（既定：``false``）  \n``options.buildMatrix``: ``matrix.bin``を出力（既定：``false``, ``matrix.def``必要）  \n``options.buildCharCategory``: ``char.bin``を出力（既定：``false``; ``char.def``, ``unk.def``必要）  \n``options.buildSysdic``: ``sys.dic``を出力（既定：``true``）   \n``options.buildModel``: ``model.bin``を出力（既定：``false``; ``model.def``必要）      \n``options.model``: ``model.def``のファイルパス（既定：``$(dicdir)/model.def``）    \n\n``matrix.def``未指定の場合，既定（``1 1\\n0 0 0\\n``）が使用されます。\n\n``char.def``未指定の場合，既定（``DEFAULT 1 0 0\\nSPACE   0 1 0\\n0x0020 SPACE\\n``）が使用されます。\n\n``unk.def``未指定の場合，既定（``DEFAULT,0,0,0,*\\nSPACE,0,0,0,*\\n``）が使用されます。\n\n ``model.bin``を出力する場合，辞書の文字コード（``dictionaryCharset``）は出力ファイルの文字コード（``utf8``）と合致していなければなりません。\n \n システム辞書ファイルとして使用するフォルダーには``dicrc``ファイルがなければなりません。\n \n```\n  //システム辞書を作成する例（ipadic-utf8）\n\n  //作業フォルダーを用意\n$dictPath:=System folder(Desktop)+\"ipadic-sys\"+Folder separator\nDELETE FOLDER($dictPath;Delete with contents)\nCREATE FOLDER($dictPath;*)\n\n  //辞書データの設定\nC_OBJECT($options)\n$options:=New object\n\n  //出力SYS.DICフォルダーパス\n$options.outdir:=$dictPath\n\n  //入力CSVファイルのフォルダーパス（ダウンロードした辞書のソースファイル群）\n$options.sysdicdir:=System folder(Desktop)+\"mecab-ipadic-utf8\"+Folder separator\n$options.dictionaryCharset:=\"UTF-8\"  //入力CSVファイルの文字コード\n\n  //設定ファイルの場所\n$options.dicdir:=Get 4D folder(Current resources folder)+\"ipadic\"\n$options.configCharset:=\"UTF-8\"  //設定ファイルの文字コード\n\n  //作成するファイルの指定　（カッコ内は依存設定ファイル）\n$options.buildUnknown:=True  //unk.dic (unk.def)\n$options.buildSysdic:=True  //sys.dic (unk.def)\n$options.buildMatrix:=True  //matrix.bin (matrix.def)\n$options.buildCharCategory:=True  //char.bin (char.def,unk.def)\n$options.buildModel:=True  //model.bin (model.def)\n\n  //辞書ファイルのコンパイル\n\n$method:=\"mecab_progress\"\nMeCab INDEX DICTIONARY (JSON Stringify($options);$method)\n\n  //辞書設定ファイルのコピー（システム）\nCOPY DOCUMENT($options.sysdicdir+\"dicrc\";$options.outdir+\"dicrc\";*)\n\n  //辞書設定ファイルコピー（ユーザー）\nCOPY DOCUMENT($options.sysdicdir+\"left-id.def\";$options.outdir+\"left-id.def\";*)\nCOPY DOCUMENT($options.sysdicdir+\"pos-id.def\";$options.outdir+\"pos-id.def\";*)\nCOPY DOCUMENT($options.sysdicdir+\"rewrite.def\";$options.outdir+\"rewrite.def\";*)\nCOPY DOCUMENT($options.sysdicdir+\"right-id.def\";$options.outdir+\"right-id.def\";*)\nCOPY DOCUMENT($options.sysdicdir+\"feature.def\";$options.outdir+\"feature.def\";*)\n\n  //システム辞書を使用\nC_OBJECT($model)\n$model:=New object\n$model.dicdir:=$dictPath\n\nMeCab SET MODEL (JSON Stringify($model))\n\n$window:=Open form window(\"TEST\")\nDIALOG(\"TEST\")\n```\n \n## ユーザー辞書を作成するには\n\n* 必須プロパティ\n\n``options.userdic``: 出力ファイルパス  \n``options.userdicdir``: 入力フォルダーパス（CSVファイルの場所）  \n``options.dicdir``: 設定フォルダーパス    \n\n* 任意プロパティ\n\n``options.assignUserDictionaryCosts``: 自動コスト計算で``.csv``を出力（既定：``false``; ``model``, ``char``, ``feature``を参照）   \n``options.model``: ``model.def``または``model.bin``のファイルパス（既定：``$(dicdir)/model.bin``）   \n``options.feature``: ``feature.def``のファイルパス（既定：``$(dicdir)/feature.def``）  \n\n* ``dicdir``に用意しておくもの（``assignUserDictionaryCosts=true``の場合）\n\n``matrix.bin``または``matrix.def``  \n``dicrc``  \n``left-id.def``  \n``right-id.def``  \n``rewrite.def``  \n``char.bin``  \n\n* ``dicdir``に用意しておくもの（``assignUserDictionaryCosts=false``の場合）\n\n``matrix.bin``または``matrix.def``  \n``dicrc``  \n``left-id.def``  \n``right-id.def``  \n``rewrite.def``  \n``pos-id.def``  \n\n## ユーザー辞書を作成するには（自動コスト計算）\n\n```\n  //ユーザー辞書を作成する例（ipadic/コスト自動計算）\n\n  //作業フォルダーを用意\n$dictPath:=System folder(Desktop)+\"ipadic-usr\"+Folder separator\nDELETE FOLDER($dictPath;Delete with contents)\nCREATE FOLDER($dictPath;*)\n\n  //CSVファイルを作成\nC_COLLECTION($data;$datum)\n$data:=New collection\n\n  //1行目は空データにする（つぎの連結コストがマイナスにならないように）\n$data.push(New collection(\"\";0;0;0;\"\";\"\";\"\";\"\";\"\";\"\";\"\";\"\";\"\"))\n\n  //単語データは2行目以降に\n$data.push(New collection(\"ルペック\";1293;1293;10000;\"名詞\";\"固有名詞\";\"地域\";\"一般\";\"*\";\"*\";\"ルペック\";\"ルペック\";\"ルペック\"))\n$data.push(New collection(\"リバルディエール\";1291;1291;10000;\"名詞\";\"固有名詞\";\"人名\";\"名\";\"*\";\"*\";\"リバルディエール\";\"リバルディエール\";\"リバルディエール\"))\n\n$csv:=New collection\nFor each ($datum;$data)\n\t$csv.push($datum.join(\",\"))\nEnd for each \n  //改行コードはLFで\nTEXT TO DOCUMENT($dictPath+\"data.csv\";$csv.join(\"\\n\");\"utf-8\";Document unchanged)\n\n  //辞書データの設定\nC_OBJECT($options)\n$options:=New object\n\n  //出力DICファイルパス\n$options.userdic:=$dictPath+\"$\"+Generate UUID+\".csv\"\n\n  //入力CSVファイルのフォルダーパス\n$options.userdicdir:=$dictPath\n$options.dictionaryCharset:=\"UTF-8\"  //入力CSVファイルの文字コード\n\n  //設定ファイルの場所\n$options.dicdir:=Get 4D folder(Current resources folder)+\"ipadic\"\n$options.configCharset:=\"UTF-8\"  //設定ファイルの文字コード\n\n$options.assignUserDictionaryCosts:=True\n\n  //追加の設定ファイル\n$options.model:=Get 4D folder(Current resources folder)+\"ipadic.utf8.model.bin\"\n$options.feature:=Get 4D folder(Current resources folder)+\"ipadic.utf8.feature.def\"\n\n  //コストの自動計算\n$method:=\"mecab_progress\"\nMeCab INDEX DICTIONARY (JSON Stringify($options);$method)\n\nMOVE DOCUMENT($dictPath+\"data.csv\";$dictPath+\"data.txt\")\nMOVE DOCUMENT($options.userdic;$dictPath+\"data.csv\")\n\n$options.assignUserDictionaryCosts:=False  //コストの自動計算モードをここでオフにする\n$options.userdic:=$dictPath+\"data.dic\"\n\n  //辞書ファイルの作成\nMeCab INDEX DICTIONARY (JSON Stringify($options);$method)\n\n  //システム辞書＋ユーザー辞書を使用\nC_OBJECT($model)\n$model:=New object\n$model.dicdir:=Get 4D folder(Current resources folder)+\"ipadic\"\n$model.userdic:=$options.userdic\n\nMeCab SET MODEL (JSON Stringify($model))\n$model:=JSON Parse(MeCab Get model )\n\n$window:=Open form window(\"TEST\")\nDIALOG(\"TEST\")\n```\n\n## ユーザー辞書を作成するには（モデル無し）\n\n```\n  //ユーザー辞書を作成する例（ipadic/コスト指定）\n\n  //作業フォルダーを用意\n$dictPath:=System folder(Desktop)+\"ipadic-usr\"+Folder separator\nDELETE FOLDER($dictPath;Delete with contents)\nCREATE FOLDER($dictPath;*)\n\n  //CSVファイルを作成\nC_COLLECTION($data;$datum)\n$data:=New collection\n\n  //1行目は空データにする（つぎの連結コストがマイナスにならないように）\n$data.push(New collection(\"\";-1;-1;0;\"\";\"\";\"\";\"\";\"\";\"\";\"\";\"\";\"\"))\n\n  //単語データは2行目以降に\n$data.push(New collection(\"ルペック\";1293;1293;1;\"名詞\";\"固有名詞\";\"地域\";\"一般\";\"*\";\"*\";\"ルペック\";\"ルペック\";\"ルペック\"))\n$data.push(New collection(\"リバルディエール\";1291;1291;1;\"名詞\";\"固有名詞\";\"人名\";\"名\";\"*\";\"*\";\"リバルディエール\";\"リバルディエール\";\"リバルディエール\"))\n\n$csv:=New collection\nFor each ($datum;$data)\n\t$csv.push($datum.join(\",\"))\nEnd for each \n  //改行コードはLFで\nTEXT TO DOCUMENT($dictPath+\"data.csv\";$csv.join(\"\\n\");\"utf-8\";Document unchanged)\n\n  //辞書データの設定\nC_OBJECT($options)\n$options:=New object\n\n  //出力DICファイルパス\n$options.userdic:=$dictPath+\"data.dic\"\n\n  //入力CSVファイルのフォルダーパス\n$options.userdicdir:=$dictPath\n$options.dictionaryCharset:=\"UTF-8\"  //入力CSVファイルの文字コード\n\n  //設定ファイルの場所\n$options.dicdir:=Get 4D folder(Current resources folder)+\"ipadic\"\n$options.configCharset:=\"UTF-8\"  //設定ファイルの文字コード\n\n$options.assignUserDictionaryCosts:=False\n\n  //辞書ファイルのコンパイル\n$method:=\"mecab_progress\"\nMeCab INDEX DICTIONARY (JSON Stringify($options);$method)\n\n  //システム辞書＋ユーザー辞書を使用\nC_OBJECT($model)\n$model:=New object\n$model.dicdir:=Get 4D folder(Current resources folder)+\"ipadic\"\n$model.userdic:=$options.userdic\nMeCab SET MODEL (JSON Stringify($model))\n$model:=JSON Parse(MeCab Get model )\n\n$window:=Open form window(\"TEST\")\nDIALOG(\"TEST\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2F4d-plugin-mecab-v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiyako%2F4d-plugin-mecab-v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2F4d-plugin-mecab-v2/lists"}