Skip to content

Commit

Permalink
train/bin 아래 스크립트를 train으로 이동 #30
Browse files Browse the repository at this point in the history
  • Loading branch information
krikit committed Jan 28, 2019
1 parent 767d057 commit 0d6a398
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 9 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ function print_usage() {
echo " -h, --help show this help message and exit"
echo " -i FILE input file"
echo " -c DIR corpus dir"
echo " --rsc-src=DIR <default: ../../rsc/src>"
echo " --lib-path=FILE <default: ../../build/lib/libkhaiii.so>"
echo " --rsc-dir=DIR <default: ../../build/share/khaiii>"
echo " --rsc-src=DIR <default: ../rsc/src>"
echo " --lib-path=FILE <default: ../build/lib/libkhaiii.so>"
echo " --rsc-dir=DIR <default: ../build/share/khaiii>"
echo " --num-mapper=NUM <default: 1000>"
if [ -z "${msg}" ]; then
exit 0
Expand Down Expand Up @@ -84,13 +84,13 @@ function parse_args() {
fi

if [ -z "${RSC_SRC}" ]; then
RSC_SRC=../../rsc/src
RSC_SRC=../rsc/src
fi
if [ -z "${LIB_PATH}" ]; then
LIB_PATH=../../build/lib/libkhaiii.so
LIB_PATH=../build/lib/libkhaiii.so
fi
if [ -z "${RSC_DIR}" ]; then
RSC_DIR=../../build/share/khaiii
RSC_DIR=../build/share/khaiii
fi
if [ -z "${NUM_MAPPER}" ]; then
NUM_MAPPER=1000
Expand Down Expand Up @@ -135,7 +135,7 @@ function cache_files() {
hadoop fs -test -e ${CACHE_DIR} && hadoop fs -rm -skipTrash -r ${CACHE_DIR}
hadoop fs -mkdir -p ${CACHE_DIR}

hadoop fs -put ../../src/main/python/khaiii ${CACHE_DIR}
hadoop fs -put ../src/main/python/khaiii ${CACHE_DIR}
hadoop fs -mkdir -p ${CACHE_DIR}/khaiii/lib
hadoop fs -put ${LIB_PATH} ${CACHE_DIR}/khaiii/lib

Expand Down Expand Up @@ -188,7 +188,7 @@ parse_args $@
cd "$(dirname $0)"
init_envs

# split_input
# cache_files
split_input
cache_files
run_hadoop
del_temp
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0d6a398

Please sign in to comment.