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

Unified Diff: components/translate/core/language_detection/BUILD.gn

Issue 2756313002: [Merge M-58] Adds ChineseScriptClassifier to predict zh-Hant or zh-Hans for input detected as zh. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/translate/core/language_detection/chinese_script_classifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/core/language_detection/BUILD.gn
diff --git a/components/translate/core/language_detection/BUILD.gn b/components/translate/core/language_detection/BUILD.gn
index d40e3bb81291f118f927dff5e3126c02413ab8bd..eb3fd0576f64dc085bb7d188b837bc7a3f219048 100644
--- a/components/translate/core/language_detection/BUILD.gn
+++ b/components/translate/core/language_detection/BUILD.gn
@@ -4,6 +4,18 @@
import("//build/config/features.gni")
+static_library("chinese_script_classifier") {
+ sources = [
+ "chinese_script_classifier.cc",
+ "chinese_script_classifier.h",
+ ]
+
+ deps = [
+ "//base",
+ "//third_party/icu",
+ ]
+}
+
static_library("language_detection") {
sources = [
"language_detection_util.cc",
@@ -11,9 +23,11 @@ static_library("language_detection") {
]
deps = [
+ ":chinese_script_classifier",
"//base",
"//components/translate/core/common",
"//third_party/cld",
+ "//third_party/icu",
"//url",
]
}
@@ -21,13 +35,16 @@ static_library("language_detection") {
source_set("unit_tests") {
testonly = true
sources = [
+ "chinese_script_classifier_test.cc",
"language_detection_util_unittest.cc",
]
deps = [
+ ":chinese_script_classifier",
":language_detection",
"//base",
"//components/translate/core/common",
"//testing/gtest",
+ "//third_party/icu",
"//url",
]
}
« no previous file with comments | « no previous file | components/translate/core/language_detection/chinese_script_classifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698