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

Unified Diff: components/translate/core/browser/proto/translate_ranker_model.proto

Issue 2565873002: [translate] Add translate ranker model loader. (Closed)
Patch Set: comments from sdefresne Created 3 years, 10 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
Index: components/translate/core/browser/proto/translate_ranker_model.proto
diff --git a/components/translate/core/browser/proto/translate_ranker_model.proto b/components/translate/core/browser/proto/translate_ranker_model.proto
index 567470bebf2ab86e5c19e6567b565de2aefa39a7..efe59cda5fe9a0a9efd810f21e3a56fd42c49ebb 100644
--- a/components/translate/core/browser/proto/translate_ranker_model.proto
+++ b/components/translate/core/browser/proto/translate_ranker_model.proto
@@ -10,7 +10,7 @@ option optimize_for = LITE_RUNTIME;
package chrome_intelligence;
-// Defines a Chrome Ranker Translate model.
+// Defines a Chrome Ranker Translate Model.
// Next tag: 12
message TranslateRankerModel {
// A number that identifies the version of this model.
@@ -36,5 +36,8 @@ message TranslateRankerModel {
map<string, float> country_weight = 7;
map<string, float> locale_weight = 8;
}
- optional LogisticRegressionModel logistic_regression_model = 2;
+
+ oneof model_revision {
+ LogisticRegressionModel logistic_regression_model = 2;
+ }
}
« no previous file with comments | « components/translate/core/browser/proto/ranker_model.proto ('k') | components/translate/core/browser/ranker_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698