4 ms·
Why does Google Translate breaks newlines when translating? It makes really hard to read.
by ORioN63 10y ago
Why does Google Translate breaks newlines when translating? It makes really hard to read.
- chronolitus 10y agoYou just made me realize, it's a harder problem than at first glance: - If you translate line by line, you lose information shared between lines (state of the current sentence, etc) "Did you stay \n up last night?" - A solution would be to remember where the newline was (here, after the word stay) translate the whole sentence, then add it back in. But after translation, maybe "stay up" transformed into another word entirely. "stay" doesn't exist anymore, Or it might have shifted to another place in the sentence. where do you put the newline? - Idioms would further exacerbate this problem. - As a result, you would need to train your translation unit (e.g. a neural net) on also intelligently carrying newlines to the translated language. This might be more work than worth the payoff. This might or might not be the reason. Could be a simple oversight, or something entirely different.