I wanted to add the NEologd dictionary to MeCab, but I couldn't install it because I didn't have permission. Make a note of how to read in the user dictionary
Windows 10 64bit MeCab 0.996 32bit
Download NEologd from the following URL https://github.com/neologd/mecab-ipadic-neologd
In the seed folder in the downloaded mecab-ipadic-neologd-master There is a solidified csv file, so unzip it Each one is a MeCab dictionary file, so unzip only the csv file you want to read
After preparing the csv file Compile the csv file by typing the following command at the command prompt
"C:\Program Files (x86)\MeCab\bin\mecab-dict-index" -d "C:\Program Files(x86)\MeCab\dic\ipadic" -u <Where you want to put your user dictionary\User dictionary name.dic> -f utf-8 -t utf-8 <location of csv file\csv filename.csv>
When reading a user dictionary from MeCab with a Python file When using Tagger, specify the user dictionary with the -u option as shown below. Multiple user dictionaries can be specified with, (comma)
import MeCab
m = MeCab.Tagger("-u hoge.dic,fuga.dic")
-How to insert NEologd dictionary on Windows-User dictionary -How to add words
Recommended Posts