Skip to content

Commit

Permalink
Rename main script to 'wer'. Not a backwards compatible change. (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
belambert authored Apr 18, 2017
1 parent 60ee2f2 commit 66d55f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ Command line usage

For command line usage, see:
```
python bin/evaluate.py --help
wer --help
```

It should be something like this:
It should display something like this:

```
usage: evaluate.py [-h] [-i] [-id] [-c] [-p] [-m count] [-a] [-e] ref hyp
usage: wer [-h] [-i | -r] [-id] [-c] [-p] [-m count] [-a] [-e] ref hyp
Evaluate an ASR transcript against a reference transcript.
Expand All @@ -57,15 +57,16 @@ positional arguments:
optional arguments:
-h, --help show this help message and exit
-i, --print-instances
Print the individual sentences and their errors
Print all individual sentences and their errors.
-r, --print-errors Print all individual sentences that contain errors.
-id, --has-ids Hypothesis and reference files have ids in the last
token?
-c, --confusions Print tables of which words were confused
-c, --confusions Print tables of which words were confused.
-p, --print-wer-vs-length
Print table of average WER grouped by reference
sentence length
sentence length.
-m count, --min-word-count count
Minimum word count to show a word in confusions
Minimum word count to show a word in confusions.
-a, --case-insensitive
Down-case the text before running the evaluation.
-e, --remove-empty-refs
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup

version='1.2.1'
version='2.0.0'

setup(
name='asr_evaluation',
Expand All @@ -14,7 +14,7 @@
test_suite='test.test.TestASREvaluation',
entry_points={
'console_scripts': [
'evaluate.py = asr_evaluation.__main__:main'
'wer = asr_evaluation.__main__:main'
]
}
)

0 comments on commit 66d55f2

Please sign in to comment.