Skip to content

Commit 1799f46

Browse files
EyalLaviMikeSmithEU
authored andcommitted
Feature/61/demo (#62)
* Added demo doc and resources * Incorporated JPE's feedback * Update DEMO.rst * Updated demo * Moved files * Update DEMO_2.rst * Update DEMO_2.rst * Update DEMO_2.rst * Update DEMO_2.rst * Update DEMO_2.rst Todo: named arguments, check RST rendering * Update DEMO_2.rst * Update DEMO_2.rst * Update DEMO_2.rst * Update DEMO_2.rst * Update DEMO_2.rst * Update DEMO_2.rst * Update DEMO_2.rst * Changed file name to tutorial Plus other fixes * remove tests/BDD/features/normalization_file_handling.feature from .gitignore * proper restructuredtext + indentation, etc * Removed duplicate file and edits * Update tutorial.rst * Update tutorial.rst * add unit test, make error of file parsing more readable * Make opcode counts output (`--diffcounts`) more palatable in markdown and rst, some changes to tutorial... * add results for kaldi * add example cli output for worddiffs * bump version * Show inline terminal output in tutorial instead of image, add output for 2nd benchmark, add restructuredtext diff dialect, add css for terminal output * put all output in terminal container + lineblock * only build html for readthedocs * Add required version * documentatio config: use html_css_files * css file relative to static path * proper readthedocs conf * fancier terminal screens * improve terminal output: break on any char, remove unnecessary zerowidthspaces * final tutorial cleanup, add output for wer results, improve XML regex (to avoid eg. " is 5 < 6, or is 5 > 6" to filter out "< 6, or is 5 >") * use simpler rst notation for code blocks and inline code * use \\1e instead of r'\1e' (better for documentation) * Proper :param: doctags, use rtype or inline type definition in future * Further using the more readable :: syntax for code-blocks * add_zero_width_space not used, set default sphinx highlight language to none * remove hard-wrap op text
1 parent 748c33f commit 1799f46

35 files changed

+2237
-133
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,3 @@ venv/
3939
ENV/
4040
env.bak/
4141
venv.bak/
42-

.readthedocs.yml

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
version: 2
2+
13
python:
24
version: 3.7
35
install:
46
- requirements: docs/requirements.txt
7+
8+
formats:
9+
- htmlzip
10+
- epub

README.rst

+9-15
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Benchmarking STT
1818
:alt: Documentation Status
1919

2020
.. image:: docs/img/benchmarksttcli.png
21-
21+
:alt: Example command line output
2222

2323
About
2424
------
@@ -31,26 +31,20 @@ Because of the wide range of languages, algorithms and audio characteristics, no
3131

3232

3333

34-
Usage
35-
------
36-
37-
.. code-block:: bash
38-
39-
$ benchmarkstt --reference reference.txt --hypothesis hypothesis.txt --diffcounts
40-
41-
Return the number of word insertions, deletions, replacements and matches for the hypothesis transcript compared to the reference.
34+
Usage examples
35+
--------------
4236

43-
.. code-block:: bash
37+
Returns the number of word insertions, deletions, replacements and matches for the hypothesis transcript compared to the reference::
4438

45-
$ benchmarkstt -r reference.txt -h hypothesis.txt --wer --lowercase
39+
benchmarkstt --reference reference.txt --hypothesis hypothesis.txt --diffcounts
4640

47-
Return the Word Error Rate after lowercasing both reference and hypothesis. This normlization improves the accuracy of the Word Error Rate as it removes diffs that might otherwise be considered errors.
41+
Returns the Word Error Rate after lowercasing both reference and hypothesis. This normlization improves the accuracy of the Word Error Rate as it removes diffs that might otherwise be considered errors::
4842

49-
.. code-block:: bash
43+
benchmarkstt -r reference.txt -h hypothesis.txt --wer --lowercase
5044

51-
$ benchmarkstt -r reference.txt -h hypothesis.txt --worddiffs --config conf
45+
Returns a visual diff after applying all the normalization rules specified in the config file::
5246

53-
Return a visual diff after applying all the normalization rules specified in the config file.
47+
benchmarkstt -r reference.txt -h hypothesis.txt --worddiffs --config conf
5448

5549

5650
Further information

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0rc5
1+
1.0rc6

docs/CODE_OF_CONDUCT.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Code of Conduct
22
===============
33

4-
:code:`Status: Draft`
4+
``Status: Draft``
55

66
We are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, sexual orientation, disability, ethnicity, religion, or similar personal characteristic.
77

docs/CONTRIBUTING.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Contributing
22
------------
33

4-
:code:`[Status: Draft]`
4+
``[Status: Draft]``
55

66
This project has a :doc:`CODE_OF_CONDUCT` that we expect all of our contributors to abide by, please check it out before contributing.
77

@@ -10,11 +10,11 @@ Pull requests and branching
1010

1111
- Before working on a feature *always* create a new branch first. (or fork the project).
1212
- Branches should be short lived, except branches specifically labelled 'experiment'.
13-
- Once work is complete push the branch up on to GitHub for review. Make sure your branch is up to date with :code:`master` before making a pull request.
14-
Eg. use :code:`git merge origin/master`
15-
- Once a branch has been merged into :code:`master`, delete it.
13+
- Once work is complete push the branch up on to GitHub for review. Make sure your branch is up to date with ``master`` before making a pull request.
14+
Eg. use ``git merge origin/master``
15+
- Once a branch has been merged into ``master``, delete it.
1616

17-
:code:`master` is rarely committed to directly unless the change is quite trivial or a code review is unnecessary (code formatting or documentation updates for example).
17+
``master`` is rarely committed to directly unless the change is quite trivial or a code review is unnecessary (code formatting or documentation updates for example).
1818

1919

2020
.. Good example of contribution guideline

docs/INSTALL.rst

+7-11
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,23 @@ This is the easiest and preferred way of installing ``benchmarkstt``.
1818
- `Installing Python 3 on Windows <https://docs.python-guide.org/starting/install3/win/>`_
1919
- `Installing Python 3 on Linux <https://docs.python-guide.org/starting/install3/linux/>`_
2020

21-
2. Install the package using :code:`pip`, this will also install all requirements
22-
23-
.. code-block:: bash
21+
2. Install the package using ``pip``, this will also install all requirements::
2422

2523
pip install benchmarkstt
2624

2725
3. Test and use
2826

2927
BenchmarkSTT should now be installed and usable.
3028

31-
.. parsed-literal::
29+
.. container:: terminal
3230

33-
$ benchmarkstt --version
34-
benchmarkstt: |release|
35-
$ echo IT WORKS! | benchmarkstt-tools normalization --lowercase
36-
it works!
31+
| $> benchmarkstt --version
32+
| benchmarkstt: |release|
33+
| $> echo IT WORKS! | benchmarkstt-tools normalization --lowercase
34+
| it works!
3735
3836

39-
Use the :code:`--help` option to get all available options.
40-
41-
.. code-block:: bash
37+
Use the ``--help`` option to get all available options::
4238

4339
benchmarkstt --help
4440
benchmarkstt-tools normalization --help

docs/_static/demos/qt_aws.json

+1
Large diffs are not rendered by default.

docs/_static/demos/qt_aws_hypothesis.txt

+1
Large diffs are not rendered by default.

docs/_static/demos/qt_kaldi.json

+1
Large diffs are not rendered by default.

docs/_static/demos/qt_kaldi_hypothesis.txt

+1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)