Page MenuHomePhabricator

Error for Swedish expressions: sre_constants.error: unmatched group
Closed, ResolvedPublic

Description

Certain expressions give error for Swedish, e.g. "tilltugg, i bakverk" and "tillverkningen". This results in server error 500 and the recitation stopping.

Log: P5431

Event Timeline

I can't replicate this error.
http://localhost:10000/wikispeech/?lang=sv&input=tilltugg,%20i%20bakverk
and
http://localhost:10000/wikispeech/?lang=sv&input=tillverkningen
both work fine for me.

Do you still get this when running with the version tagged working_20170511?

Yes, I have this after updating to working_20170511. You also get this on morf: https://morf.se/wikispeech/?lang=sv&input=tillverkningen.

Yes I could replicate on morf.se. Updated the offending line. Works now on morf.se, commited bugfix to github.

I had this happen for a few more requests (see below). Note that I'm running the working_20170511 tag, so it's possible that this has been fixed since. I couldn't get the latest revisions working, however, so if you can't reproduce this, let me know what stable revisions I should use.

URL paramters that cause the error:

lang=sv&input_type=text&input=Ett+bra+f%C3%B6rslag+f%C3%B6rklarar+exakt+vad+problemet+%C3%A4r%2C+och+vem+som+p%C3%A5verkas+av+det.

lang=sv&input_type=text&input=V%C3%A4lkommen+till+Gemenskapens+tekniska+%C3%B6nskelista+2017!%0ATack+f%C3%B6r+att+du+deltar!%0A%0A%0AKalender%0A%0AVad+%C3%A4r+Gemenskapens+tekniska+%C3%B6nskelista%3F%0AWikimedia+Sverige+vill+hj%C3%A4lpa+de+mest+aktiva+volont%C3%A4rerna+med+att+l%C3%B6sa+tekniska+problem+som+f%C3%B6rhindrat+ett+effektivt+arbete.

lang=sv&input_type=text&input=Presentera+dina+b%C3%A4sta+id%C3%A9er!%0AEn+ytterligare+anm%C3%A4rkning%3A+F%C3%B6rslag+som+g%C3%A5r+ut+p%C3%A5+att+ta+bort+eller+inaktivera+en+funktion+som+ett+produktteam++p%C3%A5+WMF+har+arbetat+med+%C3%A4r+utanf%C3%B6r+v%C3%A5ra+m%C3%B6jligheter+att+p%C3%A5verka%2C+och+kommer+inte+att+inkluderas+i+r%C3%B6stningsfasen.

lang=sv&input_type=text&input=En+rimlig+m%C3%A4ngd+av+p%C3%A5verkan+%C3%A4r+acceptabelt.

Yes, I don't get the error with wikispeech_compose 375910d. The third one (in my previous comment) does get one of those click followed by very low volume, however.

Yes, I don't get the error with wikispeech_compose 375910d. The third one (in my previous comment) does get one of those click followed by very low volume, however.

Great! I will close this task.

I agree that there is a click followed by low volume. Maybe create a separate task for that?