|
|
Chromium Code Reviews|
Created:
4 years, 3 months ago by Anton Bakalov Modified:
4 years, 2 months ago CC:
chromium-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionModifying language detection code
If the language detection model CLD3 predicts a transliterated language that is
currently not supported, then the prediction is ignored.
For more information, please see the bug entry below.
BUG=649002
Committed: https://crrev.com/52247dcede791eae0c75996335a9b2bb0d9df236
Cr-Commit-Position: refs/heads/master@{#421451}
Patch Set 1 #Patch Set 2 : Modifying the bindings code to ignore xx-Latn predictions #
Total comments: 4
Patch Set 3 : Improvements to i18n_custom_bindings.cc #
Total comments: 2
Patch Set 4 : Extending the comment about xx-Latn languages #
Messages
Total messages: 35 (22 generated)
The CQ bit was checked by abakalov@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
abakalov@chromium.org changed reviewers: + andrewhayden@chromium.org
Please add a BUG=, and describe the main points of the e-mail thread where this was agreed upon.
Description was changed from ========== Modifying language_detection_util.cc, so that if CLD3 predicts a transliterated language that is currently not supported, then the prediction is ignored. BUG= ========== to ========== Modifying language_detection_util.cc, so that if CLD3 predicts a transliterated language that is currently not supported, then the prediction is ignored. BUG=649002 ==========
Description was changed from ========== Modifying language_detection_util.cc, so that if CLD3 predicts a transliterated language that is currently not supported, then the prediction is ignored. BUG=649002 ========== to ========== Modifying language_detection_util.cc, so that if CLD3 predicts a transliterated language that is currently not supported, then the prediction is ignored. For more information, please see the bug entry below. BUG=649002 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
LGTM
The CQ bit was checked by abakalov@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Modifying language_detection_util.cc, so that if CLD3 predicts a transliterated language that is currently not supported, then the prediction is ignored. For more information, please see the bug entry below. BUG=649002 ========== to ========== Modifying code related to language detection, so that if CLD3 predicts a transliterated language that is currently not supported, then the prediction is ignored. For more information, please see the bug entry below. BUG=649002 ==========
abakalov@chromium.org changed reviewers: + rdevlin.cronin@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2359793003/diff/20001/extensions/renderer/i18... File extensions/renderer/i18n_custom_bindings.cc (right): https://codereview.chromium.org/2359793003/diff/20001/extensions/renderer/i18... extensions/renderer/i18n_custom_bindings.cc:138: detected_languages->clear(); Isn't this always the case? Could we DCHECK(detected_languages->empty()) instead? https://codereview.chromium.org/2359793003/diff/20001/extensions/renderer/i18... extensions/renderer/i18n_custom_bindings.cc:154: // Ignore languages that are currently not supported. Can we expand this comment to include why these aren't supported (and under which circumstances they would become supported) and where this list came from?
The CQ bit was checked by abakalov@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Thanks for the good suggestions, Devlin! https://codereview.chromium.org/2359793003/diff/20001/extensions/renderer/i18... File extensions/renderer/i18n_custom_bindings.cc (right): https://codereview.chromium.org/2359793003/diff/20001/extensions/renderer/i18... extensions/renderer/i18n_custom_bindings.cc:138: detected_languages->clear(); On 2016/09/27 18:34:42, Devlin (catching up) wrote: > Isn't this always the case? Could we DCHECK(detected_languages->empty()) > instead? Done. https://codereview.chromium.org/2359793003/diff/20001/extensions/renderer/i18... extensions/renderer/i18n_custom_bindings.cc:154: // Ignore languages that are currently not supported. On 2016/09/27 18:34:42, Devlin (catching up) wrote: > Can we expand this comment to include why these aren't supported (and under > which circumstances they would become supported) and where this list came from? Done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm % comment nit https://codereview.chromium.org/2359793003/diff/40001/extensions/renderer/i18... File extensions/renderer/i18n_custom_bindings.cc (right): https://codereview.chromium.org/2359793003/diff/40001/extensions/renderer/i18... extensions/renderer/i18n_custom_bindings.cc:158: // To maintain backwards compatibility, xx-Latn predictions are ignored We should still provide more detail here. Why does a -Latn suffix break existing functionality? The goal here is to have a reader understand (at least mostly) the motivation and what would change in the future. If you prefer, you can also file a bug at crbug.com and link to it here.
Also, please update the CL description. Descriptions in Rietveld: [First Line - becomes the title] [CL Body] BUG=[Bug number] So as it stands now, your commit title would be "Modifying code related to language detection, so that if CLD3 predicts a" Each line should also be wrapped at 72 char for git friendliness.
Description was changed from ========== Modifying code related to language detection, so that if CLD3 predicts a transliterated language that is currently not supported, then the prediction is ignored. For more information, please see the bug entry below. BUG=649002 ========== to ========== Modifying language detection code If the language detection model CLD3 predicts a transliterated language that is currently not supported, then the prediction is ignored. For more information, please see the bug entry below. BUG=649002 ==========
Thanks, Devlin!
https://codereview.chromium.org/2359793003/diff/40001/extensions/renderer/i18... File extensions/renderer/i18n_custom_bindings.cc (right): https://codereview.chromium.org/2359793003/diff/40001/extensions/renderer/i18... extensions/renderer/i18n_custom_bindings.cc:158: // To maintain backwards compatibility, xx-Latn predictions are ignored On 2016/09/27 22:34:28, Devlin (OOO until Thursday) wrote: > We should still provide more detail here. Why does a -Latn suffix break > existing functionality? The goal here is to have a reader understand (at least > mostly) the motivation and what would change in the future. > > If you prefer, you can also file a bug at http://crbug.com and link to it here. Done.
The CQ bit was checked by abakalov@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from andrewhayden@chromium.org, rdevlin.cronin@chromium.org Link to the patchset: https://codereview.chromium.org/2359793003/#ps60001 (title: "Extending the comment about xx-Latn languages")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Modifying language detection code If the language detection model CLD3 predicts a transliterated language that is currently not supported, then the prediction is ignored. For more information, please see the bug entry below. BUG=649002 ========== to ========== Modifying language detection code If the language detection model CLD3 predicts a transliterated language that is currently not supported, then the prediction is ignored. For more information, please see the bug entry below. BUG=649002 ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== Modifying language detection code If the language detection model CLD3 predicts a transliterated language that is currently not supported, then the prediction is ignored. For more information, please see the bug entry below. BUG=649002 ========== to ========== Modifying language detection code If the language detection model CLD3 predicts a transliterated language that is currently not supported, then the prediction is ignored. For more information, please see the bug entry below. BUG=649002 Committed: https://crrev.com/52247dcede791eae0c75996335a9b2bb0d9df236 Cr-Commit-Position: refs/heads/master@{#421451} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/52247dcede791eae0c75996335a9b2bb0d9df236 Cr-Commit-Position: refs/heads/master@{#421451} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
