Merge pull request #59 from LuminosoInsight/korean-install-fixes

Korean install fixes
This commit is contained in:
Lance Nathan 2018-06-26 11:08:06 -04:00 committed by GitHub
commit 0149e9ec7f
3 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ pip-log.txt
wordfreq-data.tar.gz
.idea
build.dot
.pytest_cache

View File

@ -395,7 +395,7 @@ things need to be installed:
To install these three things on Ubuntu, you can run:
```sh
sudo apt-get install libmecab-dev mecab-ipadic-utf8
sudo apt-get install python3-dev libmecab-dev mecab-ipadic-utf8
pip3 install mecab-python3
```
@ -419,6 +419,7 @@ wget https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-2.0.1-201
tar xvf mecab-ko-dic-2.0.1-20150920.tar.gz
cd mecab-ko-dic-2.0.1-20150920
./autogen.sh
./configure
make
sudo make install
```

View File

@ -20,6 +20,7 @@ def find_mecab_dictionary(names):
'/var/local/lib/mecab/dic',
'/usr/lib/mecab/dic',
'/usr/local/lib/mecab/dic',
'/usr/lib/x86_64-linux-gnu/mecab/dic',
]
full_paths = [os.path.join(path, name) for path in paths for name in names]
checked_paths = [path for path in full_paths if len(path) <= MAX_PATH_LENGTH]