Conversation
Changed Files
|
|
marctessier
left a comment
There was a problem hiding this comment.
I got this toast at first below and I had the time to copy it into this message :-)
Text processing failed.
g2p could not be performed, please check your text or your language code. These words could not be converted from text to phonemes by g2p: ' 123 ', ' : ', ' 1234 '.
ASDF did not have a red squiggly red line under it in the text area :-)
After converting the numbers to words ex: 1 ==> one
It was still complaining about the ":"
Text processing failed.
g2p could not be performed, please check your text or your language code. These words could not be converted from text to phonemes by g2p: ' : '.
So I changed the language to "English" and it processed to the next step.
NOTE: => I did see a red and yellow/orange toast fly by the screen on the first try "very quickly" before going to step 2..
I clicked on step one to try that again... I re-click on next step and this time only the yellow/orange toast "with some content" flash on the screen... ( Unable to read what it's about / I tried a few times ;-) but it's a warning and we are probably better of going to the next step since it was a "Congratulations! Here's your ReadAlong!"
Oh, hum, that's a poor side effect of my change to dismiss toasts once you're on step 2. It's probably the alignment failure toasts, telling you it has to try again with relaxed parameters. I wasn't thinking about them flashing like that, but what you describe is not good. I'll have to think about a better solution than that... Thanks for flagging! |
| }, | ||
| "update-browserslist": { | ||
| "command": "npx update-browserslist-db@latest" | ||
| "command": "npx -y update-browserslist-db@latest" |
There was a problem hiding this comment.
💯
I actually took note of this issue today! Glad it's fixed.
| @@ -176,7 +176,10 @@ Please check it to make sure all words are spelled out completely, e.g. write "4 | |||
| ); | |||
| } | |||
| this.toastr.error(err.error.detail, $localize`Text processing failed.`, { | |||
There was a problem hiding this comment.
Something like this might help persist the alignment warnings:
this.textProcessingErrToast = this.toastr.error( ... ).toastId;| next: (progress) => { | ||
| if (progress.hypseg !== undefined) { | ||
| this.loading = false; | ||
| this.toastr.clear(); // clean all outstanding toasts on alignment success |
There was a problem hiding this comment.
and clear only the long-lived text processing error message.
if (this.textProcessingErrToast) {
this.toastr.clear(this.textProcessingErrToast); // clean all outstanding toasts on alignment success
this.textProcessingErrToast = 0;
}There was a problem hiding this comment.
Nice, thanks for the suggestion on how to do this.
|
Oh, right, just processed this carefully: the problem is with English g2p: OOVs get mapped to nothing. So "This asdf test" gets g2p'd to the same thing as "This test", and we end up losing a word in the process. Instead of dropping the word, we map it using the "und" universal g2p mapping. This is expected given your input, and not a bug. And I guess it would be important not to hide it, the user might want to be able to read this. |
|
Closing this without merging: I'm going to turn this into three separate PRs to merge independently, since one of the changes combined here has problems and isn't ready to go. |


PR Goal?
Feedback sought?
Whether the updated app feels better
Priority?
medium
Tests added?
no
How to test?
enter
asdf 123 asdf : 1234in the text box, and see:asdfis no longer underlined as a spelling errorConfidence?
high
Version change?
no