Skip to content

Releases: jitsi/jiwer

fix SyntaxError in 3.12

01 Nov 16:18
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.04...v3.0.5

allow --cer and --global in CLI

05 May 08:14
Compare
Choose a tag to compare

v3.0.3 - update rapidfuzz

31 Aug 18:25
Compare
Choose a tag to compare

v3.0.2

16 Jun 15:40
44254c4
Compare
Choose a tag to compare

What's Changed

  • add option to skip correct pairs in visualization by @nikvaessen in #79

Full Changelog: v3.0.1...v3.0.2

v3.0.1

28 Mar 18:38
Compare
Choose a tag to compare

What's Changed

Minor release for fixing #76 .

Full Changelog: v3.0.0...v3.0.1

v3.0.0

17 Mar 15:46
Compare
Choose a tag to compare

What's Changed

This release makes breaking changes to the jiwer API.

First, we introduce 3 new methods:

1.jiwer.compute_measures() is renamed to jiwer.process_words, and returns everything in a dataclass named WordOutput.
2.jiwer.cer(return_dict=True) is deprecated, and is superseded by jiwer.process_characters, which returns everything in a dataclass named CharacterOutput
3. jiwer.visualize_measures is renamed to jiwer.visualize_alignment. Moreover, the keyword argument visualize_cer: bool = False has been removed, and the output keyword argument is now of expected type Union[WordOutput, CharacterOutput].

I've also decided to rename all mentions of the concept "(ground)truth" to "reference", in the light of the Whisper speech-to-text model showing that future ASR models might not trained on something like a "ground truth". Therefore, in the following methods, the keyword arguments truth and truth_transform have been renamed to reference and reference_transform:

  1. jiwer.cer()
  2. jiwer.mer()
  3. jiwer.wer()
  4. jiwer.wil()
  5. jiwer.wip()

The alignments are now stored as a list of lists containing jiwer.AlignmentChunk dataclass objects instead of hard-to-document tuples.

Lastly, I've added jiwer.transformations.cer_contiguous for optionally calculating the CER with uneven amount of reference and hypothesis sentences. I've also changed the wer_standardize and wer_standardize_contiguous so that the last 3 transformations are now:

        tr.Strip(),
        tr.ReduceToSingleSentence(),
        tr.ReduceToListOfListOfWords(),

This releases also introduced a documentation website. See https://jitsi.github.io/jiwer.

Full Changelog: v2.6.0...v3.0.0

v2.6.0 - jiwer CLI + alignment and visualisation

14 Mar 08:29
Compare
Choose a tag to compare

What's Changed

The return dictionary of jiwer.cer() and jiwer.compute_measures() now has 3 addional keys: ops, truth, and hypothesis. See the alignment section of the README, and the doc-strings of the methods, for more details.

Also adds the jiwer.visualize_measures() to visualize the alignment of all ground-truth/hypothesis pairs.

Finally, the jiwer command is automatically installed upon installation of jiwer, which provides a simple CLI for interacting with jiwer.

Commit list:

Full Changelog: v2.5.2...v2.6.0

v2.5.2

13 Mar 14:19
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.5.1...v2.5.2

Performance improvement for RemovePunctuation

06 Sep 20:00
33067d5
Compare
Choose a tag to compare

What's Changed

  • compute the list of punctuation characters only once. by @f4hy in #67

New Contributors

  • @f4hy made their first contribution in #67

Full Changelog: v.2.5.0...v2.5.1

Bug fixes and deprecation removal

03 Sep 10:42
Compare
Choose a tag to compare

What's Changed

  • Handle non-ascii punctuation in RemovePunctuation transform by @nikvaessen in #63
  • Fix bug in RemoveSpecificWords matching on partials by @nikvaessen in #64
  • Remove depricated keywords standardize and words_to_filter by @nikvaessen in #65

Full Changelog: v2.4.0...v.2.5.0