We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 278263a commit a61d874Copy full SHA for a61d874
src/benchmarkstt/metrics/core.py
@@ -80,9 +80,17 @@ class WER(Base):
80
number of reference words
81
82
See: https://en.wikipedia.org/wiki/Word_error_rate
83
+
84
+ Insertions, deletions and substitutions are
85
+ identified using the Hunt–McIlroy diff algorithm.
86
+ This algorithm is the one used internally by Python.
87
+ See https://docs.python.org/3/library/difflib.html
88
89
+ :param mode: WER variant. 'strict' is the default. 'hunt' applies 0.5 weight to insertions and deletions.
90
+ :param differ_class: For future use.
91
"""
92
- # TODO: proper documenting of different modes
93
+ # WER modes
94
MODE_STRICT = 'strict'
95
MODE_HUNT = 'hunt'
96
0 commit comments