diff --git a/sziszapangma/core/transformer/__pycache__/embedding_transformer.cpython-38.pyc b/sziszapangma/core/transformer/__pycache__/embedding_transformer.cpython-38.pyc index b8f5eb717f11eb752da710b33d6fba62417c5c4e..b1ed18db8c746888e658d359289cdbeeabaf6c9c 100644 Binary files a/sziszapangma/core/transformer/__pycache__/embedding_transformer.cpython-38.pyc and b/sziszapangma/core/transformer/__pycache__/embedding_transformer.cpython-38.pyc differ diff --git a/sziszapangma/core/wer/__pycache__/wer_calculator.cpython-38.pyc b/sziszapangma/core/wer/__pycache__/wer_calculator.cpython-38.pyc index 0e3f29381a1c6f19fd5f025c13ae15dd3a3baf30..2c81baf6b4a392f961031fa26b0c3170b95c3c3c 100644 Binary files a/sziszapangma/core/wer/__pycache__/wer_calculator.cpython-38.pyc and b/sziszapangma/core/wer/__pycache__/wer_calculator.cpython-38.pyc differ diff --git a/tests/test_classic_wer.py b/tests/test_classic_wer.py index 0766e9443fc37856522062f9f3db6c038107f3b3..e88ce97f4747e66c8b0bcf44e1dfdc2dc63e3350 100644 --- a/tests/test_classic_wer.py +++ b/tests/test_classic_wer.py @@ -5,12 +5,13 @@ import pytest from sziszapangma.core.alignment.alignment_classic_calculator import AlignmentClassicCalculator from sziszapangma.core.alignment.step_type import StepType from sziszapangma.core.alignment.step_words import StepWords -from sziszapangma.core.alignment.word import Word from sziszapangma.core.wer.wer_calculator import WerCalculator +from sziszapangma.model.model import Word +from sziszapangma.model.model_creators import create_new_word def string_list_to_words(strings: List[str]) -> List[Word]: - return [Word.from_string(it) for it in strings] + return [create_new_word(it) for it in strings] def get_sample_data() -> Tuple[List[Word], List[Word]]: diff --git a/tests/test_embedding_wer.py b/tests/test_embedding_wer.py index 69fe11e91e4c65e90e58876000fe97eedac608ee..55bdf36cf8809cb6a8aab6c8109c0230a08d2bc6 100644 --- a/tests/test_embedding_wer.py +++ b/tests/test_embedding_wer.py @@ -4,13 +4,14 @@ import pytest from sziszapangma.core.alignment.alignment_calculator import AlignmentCalculator from sziszapangma.core.alignment.alignment_embedding_calculator import AlignmentEmbeddingCalculator -from sziszapangma.core.alignment.word import Word from sziszapangma.core.wer.wer_calculator import WerCalculator +from sziszapangma.model.model import Word +from sziszapangma.model.model_creators import create_new_word from tests.file_stored_embedding_transformer import FileStoredEmbeddingTransformer def string_list_to_words(strings: List[str]) -> List[Word]: - return [Word.from_string(it) for it in strings] + return [create_new_word(it) for it in strings] def get_sample_data() -> Tuple[List[Word], List[Word]]: diff --git a/tests/test_soft_wer.py b/tests/test_soft_wer.py index 64703e3e0cefc958d3bd1cc405f2611573db0f70..017d39fbd30811bed4de720b392088b8d001a298 100644 --- a/tests/test_soft_wer.py +++ b/tests/test_soft_wer.py @@ -4,13 +4,14 @@ import pytest from sziszapangma.core.alignment.alignment_calculator import AlignmentCalculator from sziszapangma.core.alignment.alignment_soft_calculator import AlignmentSoftCalculator -from sziszapangma.core.alignment.word import Word from sziszapangma.core.wer.wer_calculator import WerCalculator +from sziszapangma.model.model import Word +from sziszapangma.model.model_creators import create_new_word from tests.file_stored_embedding_transformer import FileStoredEmbeddingTransformer def string_list_to_words(strings: List[str]) -> List[Word]: - return [Word.from_string(it) for it in strings] + return [create_new_word(it) for it in strings] def get_sample_data() -> Tuple[List[Word], List[Word]]: