Skip to content

Commit

Permalink
Experiment with sentencepiece 0.2.0 and USE_EXTERNAL_ABSL
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 695436079
  • Loading branch information
pchx authored and copybara-github committed Nov 11, 2024
1 parent e54d9cb commit abe74d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "ht
http_archive(
name = "com_google_sentencepiece",
build_file = "@//bazel:sentencepiece.bazel",
patch_args = ["-p1"],
patches = ["@//bazel:sentencepiece.patch"],
sha256 = "8409b0126ebd62b256c685d5757150cf7fcb2b92a2f2b98efb3f38fc36719754",
strip_prefix = "sentencepiece-0.1.96",
urls = ["https://github.com/google/sentencepiece/archive/refs/tags/v0.1.96.zip"],
sha256 = "67c34082deb3d89f589d8614b1ae58aa4af250c79e18737d8103242ec62a28f9",
strip_prefix = "sentencepiece-0.2.0",
urls = ["https://github.com/google/sentencepiece/archive/refs/tags/v0.2.0.zip"],
)

# For sentencepiece
Expand Down
2 changes: 1 addition & 1 deletion bazel/sentencepiece.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ cc_library(
"src/util.h",
"src/word_model.h",
],
defines = ["_USE_TF_STRING_VIEW"],
defines = ["USE_EXTERNAL_ABSL", "_USE_TF_STRING_VIEW"],
includes = [
".",
"src",
Expand Down

0 comments on commit abe74d8

Please sign in to comment.