-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46f6364
commit c1b0d5e
Showing
17 changed files
with
160 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,78 @@ | ||
from .measures import * | ||
from .transforms import * | ||
from .transformations import * | ||
from .alignment import * | ||
from .process import * | ||
from .alignment import collect_error_counts, visualize_alignment, visualize_error_counts | ||
from .measures import cer, mer, wer, wil, wip | ||
from .process import ( | ||
AlignmentChunk, | ||
CharacterOutput, | ||
WordOutput, | ||
process_characters, | ||
process_words, | ||
) | ||
from .transformations import ( | ||
cer_contiguous, | ||
cer_default, | ||
wer_contiguous, | ||
wer_default, | ||
wer_standardize, | ||
wer_standardize_contiguous, | ||
) | ||
from .transforms import ( | ||
AbstractTransform, | ||
Compose, | ||
ExpandCommonEnglishContractions, | ||
ReduceToListOfListOfChars, | ||
ReduceToListOfListOfWords, | ||
ReduceToSingleSentence, | ||
RemoveEmptyStrings, | ||
RemoveKaldiNonWords, | ||
RemoveMultipleSpaces, | ||
RemovePunctuation, | ||
RemoveSpecificWords, | ||
RemoveWhiteSpace, | ||
Strip, | ||
SubstituteRegexes, | ||
SubstituteWords, | ||
ToLowerCase, | ||
ToUpperCase, | ||
) | ||
|
||
name = "jiwer" | ||
|
||
__version__ = "4.0.0" | ||
__all__ = [ | ||
visualize_alignment, | ||
visualize_error_counts, | ||
collect_error_counts, | ||
cer, | ||
mer, | ||
wer, | ||
wil, | ||
wip, | ||
AlignmentChunk, | ||
CharacterOutput, | ||
WordOutput, | ||
process_characters, | ||
process_words, | ||
AbstractTransform, | ||
Compose, | ||
ExpandCommonEnglishContractions, | ||
ReduceToListOfListOfChars, | ||
ReduceToListOfListOfWords, | ||
ReduceToSingleSentence, | ||
RemoveEmptyStrings, | ||
RemoveKaldiNonWords, | ||
RemoveMultipleSpaces, | ||
RemovePunctuation, | ||
RemoveSpecificWords, | ||
RemoveWhiteSpace, | ||
Strip, | ||
SubstituteRegexes, | ||
SubstituteWords, | ||
ToLowerCase, | ||
ToUpperCase, | ||
cer_contiguous, | ||
cer_default, | ||
wer_contiguous, | ||
wer_default, | ||
wer_standardize, | ||
wer_standardize_contiguous, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import unittest | ||
|
||
import jiwer | ||
|
||
from jiwer import visualize_alignment | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import pytest | ||
|
||
import jiwer | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import pytest | ||
|
||
from jiwer import process_words, wer | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.