diff --git a/WORKSPACE b/WORKSPACE index 046da997b..702d1899e 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -177,7 +177,7 @@ http_archive( "//third_party:com_google_sentencepiece_no_gflag_no_gtest.diff", ], patch_args = ["-p1"], - repo_mapping = {"@com_google_glog" : "@com_github_glog_glog"}, + repo_mapping = {"@com_google_glog" : "@com_github_glog_glog_no_gflags"}, ) http_archive( diff --git a/mediapipe/calculators/tensor/BUILD b/mediapipe/calculators/tensor/BUILD index 3385bcf47..3f1278397 100644 --- a/mediapipe/calculators/tensor/BUILD +++ b/mediapipe/calculators/tensor/BUILD @@ -266,6 +266,7 @@ cc_test( "@com_google_absl//absl/status", "@com_google_absl//absl/status:statusor", "@com_google_absl//absl/strings", + "@com_google_sentencepiece//src:sentencepiece_processor", ], ) @@ -321,6 +322,7 @@ cc_test( "@com_google_absl//absl/status", "@com_google_absl//absl/status:statusor", "@com_google_absl//absl/strings", + "@com_google_sentencepiece//src:sentencepiece_processor", ], ) diff --git a/mediapipe/tasks/cc/text/text_classifier/BUILD b/mediapipe/tasks/cc/text/text_classifier/BUILD index b2e1bed2a..52b0c0e4b 100644 --- a/mediapipe/tasks/cc/text/text_classifier/BUILD +++ b/mediapipe/tasks/cc/text/text_classifier/BUILD @@ -85,6 +85,7 @@ cc_test( "@com_google_absl//absl/status:statusor", "@com_google_absl//absl/strings", "@com_google_absl//absl/strings:cord", + "@com_google_sentencepiece//src:sentencepiece_processor", "@org_tensorflow//tensorflow/lite/core/shims:cc_shims_test_util", ], ) diff --git a/mediapipe/tasks/cc/text/text_embedder/BUILD b/mediapipe/tasks/cc/text/text_embedder/BUILD index 331902362..e2e16c9c1 100644 --- a/mediapipe/tasks/cc/text/text_embedder/BUILD +++ b/mediapipe/tasks/cc/text/text_embedder/BUILD @@ -82,6 +82,7 @@ cc_test( "@com_google_absl//absl/flags:flag", "@com_google_absl//absl/status", "@com_google_absl//absl/status:statusor", + "@com_google_sentencepiece//src:sentencepiece_processor", "@org_tensorflow//tensorflow/lite/core/shims:cc_shims_test_util", ], ) diff --git a/mediapipe/tasks/cc/text/tokenizers/BUILD b/mediapipe/tasks/cc/text/tokenizers/BUILD index 5ce08b2d7..7f1ea2848 100644 --- a/mediapipe/tasks/cc/text/tokenizers/BUILD +++ b/mediapipe/tasks/cc/text/tokenizers/BUILD @@ -83,6 +83,7 @@ cc_test( ":sentencepiece_tokenizer", "//mediapipe/framework/port:gtest_main", "//mediapipe/tasks/cc/core:utils", + "@com_google_sentencepiece//src:sentencepiece_processor", ], ) @@ -132,6 +133,7 @@ cc_test( "@com_google_absl//absl/status:statusor", "@com_google_absl//absl/strings", "@com_google_absl//absl/strings:cord", + "@com_google_sentencepiece//src:sentencepiece_processor", ], )