Skip to content

Commit

Permalink
Merge pull request #52 from cmusphinx/kal-list-stages
Browse files Browse the repository at this point in the history
Allow sphinxtrain to list stage names
  • Loading branch information
dhdaines authored Dec 11, 2024
2 parents 811dfbf + c612377 commit 37c7234
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/sphinxtrain
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def usage():
print(" -s <stage1,stage2,stage3> run - run selected stages")
print(" -f <stage> run - run from selected stage")
print(" run - run all training")
print(" list - list stages and exit")


def main():
Expand Down Expand Up @@ -189,8 +190,10 @@ def main():
run_from(from_stage)
else:
run()
elif command == "list":
print("\n".join(steps))
else:
run()
usage()


if __name__ == "__main__":
Expand Down

0 comments on commit 37c7234

Please sign in to comment.