Skip to content

Commit

Permalink
Update continuous evaluation scripts to make them independent of CWD.
Browse files Browse the repository at this point in the history
  • Loading branch information
ty274 committed May 15, 2020
1 parent b6c0406 commit 58e8dfb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions scoring/python/asclite_libricss.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,19 +166,19 @@ def main(args):





def make_argparse():
scoring_base = os.path.dirname(os.path.dirname(__file__))

parser = argparse.ArgumentParser(description='Score SR output with asclite.')

# Set up an argument parser.
parser.add_argument('--decodedir', metavar='<dir>', required=True,
help='Directory where CTM files are retrieved.')
parser.add_argument('--sctkpath', metavar='<path>', required=True,
help='Path to asclite.')
parser.add_argument('--refdir', metavar='<dir>', default=r'./references',
parser.add_argument('--refdir', metavar='<dir>', default=os.path.join(scoring_base, 'references'),
help='Directory where STM files are retrieved.')
parser.add_argument('--glmfile', metavar='<file>', default=r'./en20040920.glm',
parser.add_argument('--glmfile', metavar='<file>', default=os.path.join(scoring_base, 'en20040920.glm'),
help='GLM file for text normalization.')
parser.add_argument('--ignore_overlap', action='store_true',
help='Score for only single-speaker segments.')
Expand Down
2 changes: 1 addition & 1 deletion scoring/scripts/eval_continuous.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

decode_path=$1

eval_script=./python/asclite_libricss_batch.py
eval_script=`dirname $0`/../python/asclite_libricss_batch.py
python $eval_script --decode_root $decode_path --sctkpath $SCTKPATH/bin

0 comments on commit 58e8dfb

Please sign in to comment.