Skip to content

Commit

Permalink
Centos for example doesn't have a python command by default
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Jan 20, 2020
1 parent 9482e7c commit d470806
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ WINDOW_SIZE=15
BINARY=2
NUM_THREADS=8
X_MAX=10
if hash python 2>/dev/null; then
PYTHON=python
else
PYTHON=python3
fi

echo
echo "$ $BUILDDIR/vocab_count -min-count $VOCAB_MIN_COUNT -verbose $VERBOSE < $CORPUS > $VOCAB_FILE"
Expand All @@ -46,7 +51,7 @@ if [ "$CORPUS" = 'text8' ]; then
elif [ "$1" = 'octave' ]; then
octave < ./eval/octave/read_and_evaluate_octave.m 1>&2
else
echo "$ python eval/python/evaluate.py"
python eval/python/evaluate.py
echo "$ $PYTHON eval/python/evaluate.py"
$PYTHON eval/python/evaluate.py
fi
fi

0 comments on commit d470806

Please sign in to comment.