Introduced binding of MeCab (Wakame seaweed) and Python to Windows 7 64bit (2016/08/18)

Introduction

I thought it was harder than I thought to introduce MeCab to Windows 7 64bit, so I will post it as a memorandum.

MeCab is a morphological analysis tool. It basically does the following: ――It divides Japanese sentences into morphemes (the smallest blocks that make sense) ――It analyzes the part of speech of morphemes

1st line: Entered text, 3rd line and below: Result result.png

The information I referred to is below (Thank you!): -[Create an environment of 64bit Windows + python 2.7 + MeCab 0.996](http://qiita.com/h_kabocha/items/5bee9e9b852aed11411b#%E3%81%AF%E3%81%98%E3%82%81%E3 % 81% AB) -Windows 64bit, mecab-python

What you need for installation

procedure

1. Download and install all "Requirements for installation"

You can download mecab-0.996.exe, mecab-0.996.tar.gz, mecab-python-0.996.tar.gz from here.

2. Install MeCab main unit

Execute mecab-0.996.exe and write environment variables.

  1. Run mecab-0.996.exe. The character code of the dictionary is utf-8 (because it is versatile and I am used to it).
  2. Add C: \ Mecab \ bin to the environment variable PATH
  3. Create a new environment variable MECABRC and set C: \ Mecab \ etc \ mecabrc
  4. Create if there is no Mecab directory under C: (state of C: \ Mecab \)

--At this time, create bin and sdk folders under Mecab folder -* Please check the environment variables as they may differ from one to another.

(Added on 2016/8/18) When you execute mecab-0.996.exe, a MeCab folder will be created under `C: \ Program Files (x86) \`. If you put that folder in ``` C: ` ``, you don't need to do number 4. I noticed while writing the article ... orz </ font>

3. Modify and build MeCab source

Here, when I was looking at the information I was referring to, there was a mistake in specifying the file, and it took time to match it to my PC. (I didn't have much knowledge, so I uninstalled it twice and did it the third time lol) Expand

  1. mecab-0.996.tar.gz

  2. Fixed some files in mecab-0.996 / src folder. Please change (old) and below to (new) and below