Skip to content

Commit

Permalink
added PYTHONIOENCODING
Browse files Browse the repository at this point in the history
  • Loading branch information
kan-bayashi committed Aug 16, 2019
1 parent 6759e7f commit b9ee176
Show file tree
Hide file tree
Showing 48 changed files with 144 additions and 0 deletions.
3 changes: 3 additions & 0 deletions egs/aishell/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/ami/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/an4/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/an4/tts1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/aurora4/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/babel/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/chime4/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/chime4/asr1_multich/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@ if ! which PESQ > /dev/null; then
echo "Error: cd ${MAIN_ROOT}/tools && make pesq" >&2
return 1
fi

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/chime5/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/commonvoice/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ if ! which spm_decode > /dev/null; then
echo "Error: cd ${MAIN_ROOT}/tools && make sentencepiece.done" >&2
return 1
fi

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/csj/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ if ! which nkf > /dev/null; then
echo "Error: cd ${MAIN_ROOT}/tools && make nkf.done" >&2
return 1
fi

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/fisher_callhome_spanish/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/fisher_callhome_spanish/mt1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ if ! which tokenizer.perl > /dev/null; then
echo "Error: cd ${MAIN_ROOT}/tools && make moses.done" >&2
return 1
fi

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/fisher_callhome_spanish/st1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ if ! which tokenizer.perl > /dev/null; then
echo "Error: cd ${MAIN_ROOT}/tools && make moses.done" >&2
return 1
fi

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/fisher_swbd/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/hkust/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/hub4_spanish/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/iwslt18/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ if ! which segmentBasedOnMWER.sh > /dev/null; then
echo "Error: cd ${MAIN_ROOT}/tools && make mwerSegmenter.done" >&2
return 1
fi

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/iwslt18/mt1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ if ! which tokenizer.perl > /dev/null; then
echo "Error: cd ${MAIN_ROOT}/tools && make moses.done" >&2
return 1
fi

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/iwslt18/st1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ if ! which segmentBasedOnMWER.sh > /dev/null; then
echo "Error: cd ${MAIN_ROOT}/tools && make mwerSegmenter.done" >&2
return 1
fi

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/jnas/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ if ! which nkf > /dev/null; then
echo "Error: cd ${MAIN_ROOT}/tools && make nkf.done" >&2
return 1
fi

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/jsalt18e2e/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ if ! which nkf > /dev/null; then
echo "Error: cd ${MAIN_ROOT}/tools && make nkf.done" >&2
return 1
fi

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/jsut/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/jsut/tts1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/li10/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ if ! which nkf > /dev/null; then
echo "Error: cd ${MAIN_ROOT}/tools && make nkf.done" >&2
return 1
fi

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/libri_trans/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ if ! which tokenizer.perl > /dev/null; then
echo "Error: cd ${MAIN_ROOT}/tools && make moses.done" >&2
return 1
fi

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/libri_trans/mt1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ if ! which tokenizer.perl > /dev/null; then
echo "Error: cd ${MAIN_ROOT}/tools && make moses.done" >&2
return 1
fi

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/libri_trans/st1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ if ! which tokenizer.perl > /dev/null; then
echo "Error: cd ${MAIN_ROOT}/tools && make moses.done" >&2
return 1
fi

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/librispeech/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/libritts/tts1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/ljspeech/tts1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/ljspeech/tts2/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/m_ailabs/tts1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/mini_an4/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/mini_an4/tts1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/must_c/st1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ if ! which tokenizer.perl > /dev/null; then
echo "Error: cd ${MAIN_ROOT}/tools && make moses.done" >&2
return 1
fi

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/reverb/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/reverb/asr1_multich/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/ru_open_stt/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/swbd/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/tedlium2/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/tedlium3/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/timit/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/voxforge/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/wsj/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/wsj_mix/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/yesno/asr1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8
3 changes: 3 additions & 0 deletions egs/yesno/tts1/path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ fi
export PATH=$MAIN_ROOT/utils:$MAIN_ROOT/espnet/bin:$PATH

export OMP_NUM_THREADS=1

# NOTE(kan-bayashi): Use UTF-8 in Python to avoid UnicodeDecodeError when LC_ALL=C
export PYTHONIOENCODING=UTF-8

0 comments on commit b9ee176

Please sign in to comment.