add select function
fixed a bug
add check is_zh and n-gram in rails
update run.sh