ml: make tclib use the vocab based model.
Note that the "-v1" in the model name is due to fixing the ubasan
failure for memory misalignment issue. It should not be used in the
future release.
BUG=b:169370175,chromium:1121403
TEST=unit test on nocturne
Cq-Depend: 2493581
Change-Id: Idd79302ef7892598c37b93bfe08d519b0d8023a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2493800
Reviewed-by: Andrew Moylan <amoylan@chromium.org>
Reviewed-by: Honglin Yu <honglinyu@chromium.org>
Commit-Queue: Honglin Yu <honglinyu@chromium.org>
Tested-by: Honglin Yu <honglinyu@chromium.org>
diff --git a/ml/text_classifier_impl.cc b/ml/text_classifier_impl.cc
index 090932f..8eb09e3 100644
--- a/ml/text_classifier_impl.cc
+++ b/ml/text_classifier_impl.cc
@@ -31,7 +31,8 @@
using ::chromeos::machine_learning::mojom::TextSuggestSelectionRequestPtr;
constexpr char kTextClassifierModelFilePath[] =
- "/opt/google/chrome/ml_models/mlservice-model-text_classifier_en-v711.fb";
+ "/opt/google/chrome/ml_models/"
+ "mlservice-model-text_classifier_en-v711_vocab-v1.fb";
constexpr char kLanguageIdentificationModelFilePath[] =
"/opt/google/chrome/ml_models/"