10 lines
383 B
Python
10 lines
383 B
Python
|
|
from speech_to_speech.LLM.utils import remove_unspeechable
|
|||
|
|
|
|||
|
|
|
|||
|
|
def test_remove_unspeechable_normalizes_smart_apostrophes() -> None:
|
|||
|
|
assert remove_unspeechable("I’ll reply if here’s the plan.") == "I'll reply if here's the plan."
|
|||
|
|
|
|||
|
|
|
|||
|
|
def test_remove_unspeechable_keeps_text_and_drops_emoji() -> None:
|
|||
|
|
assert remove_unspeechable("Hello 👋 lobster 🦞") == "Hello lobster "
|