Skip to content

Added german_cleaners#1642

Merged
BenoitWang merged 4 commits into
speechbrain:developfrom
padmalcom:develop
Nov 22, 2022
Merged

Added german_cleaners#1642
BenoitWang merged 4 commits into
speechbrain:developfrom
padmalcom:develop

Conversation

@padmalcom

Copy link
Copy Markdown
Contributor

I added a german cleaner to avoid lowercasing texts.

@mravanelli mravanelli requested a review from BenoitWang November 2, 2022 15:57
@BenoitWang

Copy link
Copy Markdown
Collaborator

Hi @padmalcom thank you for the pr, could you please explain why here you try to avoid lowercasing for German? And in German are abbreviations used? Is this cleaner general for German or for certain datasets? (Excuse that I don't speak German.) Thank you.

@padmalcom

Copy link
Copy Markdown
Contributor Author

Hi @BenoitWang, sure! In German nouns start with a capital letter, verbs, adverbs etc. don't. E.g. "Zahlen" (numbers) and "zahlen" (to pay) can have different meanings, so cases are important. Abbreviations are used, yes. Since the dataset I use, is generated from mp3s and text is extracted via speech-to-text models and fixed by a punctuation model, I'm pretty sure that it does not contain abbreviations. The cleaner will work for every dataset.

@BenoitWang

Copy link
Copy Markdown
Collaborator

Ok I see. Please finish the tests (some simple linter issues). You are also welcome to create a list of german abbreviations if you've got time.

@BenoitWang BenoitWang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good.

@padmalcom

Copy link
Copy Markdown
Contributor Author

Sorry what ist the issue Here?

@BenoitWang BenoitWang merged commit 5063efb into speechbrain:develop Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants