mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
mecab-ipadic-neologdのチェック追加
This commit is contained in:
parent
7c3eaf59d4
commit
1a19893f10
1 changed files with 10 additions and 3 deletions
13
start.sh
13
start.sh
|
@ -1,8 +1,15 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if (grep keywordEnabled config.json | grep -q true) && (! which mecab); then
|
if grep keywordEnabled config.json | grep -q true; then
|
||||||
echo "You must install MeCab if keywordEnabled is true."
|
if ! which mecab; then
|
||||||
exit 1
|
echo "You must install MeCab if keywordEnabled is true."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -e '/usr/lib/x86_64-linux-gnu/mecab/dic/mecab-ipadic-neologd/' ]; then
|
||||||
|
echo "You must install mecab-ipadic-neologd if keywordEnabled is true."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
node ./built
|
node ./built
|
||||||
|
|
Loading…
Reference in a new issue