Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Issue 2732023003: Adds ChineseScriptClassifier to predict zh-Hant or zh-Hans for input detected as zh. (Closed)

Created:
3 years, 9 months ago by riesa
Modified:
3 years, 9 months ago
Reviewers:
groby-ooo-7-16, groby1
CC:
chromium-reviews, Anton Bakalov
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds ChineseScriptClassifier to predict zh-Hant or zh-Hans for input detected as zh. BUG=684609 Review-Url: https://codereview.chromium.org/2732023003 Cr-Commit-Position: refs/heads/master@{#455383} Committed: https://chromium.googlesource.com/chromium/src/+/87c6f931ecc4e25ce694d0c4039d4acdae572b60

Patch Set 1 #

Patch Set 2 : Adds icu dependency to language_detection_util #

Patch Set 3 : Changes invocation of Transilterator objects; changes ambiguous case default to zh-Hans #

Patch Set 4 : Removes CHECKs so rendering process does not crash in case of an initialization error. #

Patch Set 5 : Classifies according to closest match for ambiguous cases. #

Patch Set 6 : Initialize ICU error status object #

Patch Set 7 : Count only characters that have Hans and Hant variants #

Patch Set 8 : Fixes broken test #

Total comments: 18

Patch Set 9 : Addressing reviewer comments from groby@ #

Patch Set 10 : VLOG to DVLOG #

Unified diffs Side-by-side diffs Delta from patch set Stats (+279 lines, -6 lines) Patch
M components/translate/core/language_detection/BUILD.gn View 1 3 chunks +17 lines, -0 lines 0 comments Download
A components/translate/core/language_detection/chinese_script_classifier.h View 1 2 3 4 5 6 7 8 1 chunk +43 lines, -0 lines 0 comments Download
A components/translate/core/language_detection/chinese_script_classifier.cc View 1 2 3 4 5 6 7 8 9 1 chunk +129 lines, -0 lines 0 comments Download
A components/translate/core/language_detection/chinese_script_classifier_test.cc View 1 2 3 4 5 6 7 1 chunk +72 lines, -0 lines 0 comments Download
M components/translate/core/language_detection/language_detection_util.cc View 1 2 3 4 2 chunks +18 lines, -6 lines 0 comments Download

Messages

Total messages: 57 (49 generated)
riesa
This change adds the component that makes a deterministic classification of any Chinese-detected input. This ...
3 years, 9 months ago (2017-03-07 00:10:13 UTC) #9
groby-ooo-7-16
Mostly reviewed for technical functionality - I wouldn't know how to distinguish hant/hans properly :) ...
3 years, 9 months ago (2017-03-08 00:41:55 UTC) #36
riesa
Thanks for reviewing! https://codereview.chromium.org/2732023003/diff/130001/components/translate/core/language_detection/chinese_script_classifier.cc File components/translate/core/language_detection/chinese_script_classifier.cc (right): https://codereview.chromium.org/2732023003/diff/130001/components/translate/core/language_detection/chinese_script_classifier.cc#newcode78 components/translate/core/language_detection/chinese_script_classifier.cc:78: VLOG(1) << "Original input:\n" << input_subset; ...
3 years, 9 months ago (2017-03-08 01:47:42 UTC) #37
groby1
LGTM Definitely OK with VLOG for this release, we should just think about DVLOG/removal in ...
3 years, 9 months ago (2017-03-08 02:00:57 UTC) #41
riesa
On 2017/03/08 02:00:57, groby1 wrote: > LGTM > > Definitely OK with VLOG for this ...
3 years, 9 months ago (2017-03-08 02:17:20 UTC) #42
groby-ooo-7-16
On 2017/03/08 02:17:20, riesa wrote: > On 2017/03/08 02:00:57, groby1 wrote: > > LGTM > ...
3 years, 9 months ago (2017-03-08 02:21:30 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2732023003/170001
3 years, 9 months ago (2017-03-08 04:59:00 UTC) #54
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 05:06:08 UTC) #57
Message was sent while issue was closed.
Committed patchset #10 (id:170001) as
https://chromium.googlesource.com/chromium/src/+/87c6f931ecc4e25ce694d0c4039d...

Powered by Google App Engine
This is Rietveld 408576698