Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 611557924
  • Loading branch information
tf-text-github-robot committed Feb 29, 2024
1 parent 37e8e00 commit d8d1544
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions tensorflow_text/core/kernels/sentencepiece/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ cc_test(
"//file/base:path",
"//file/localfile",
"@com_google_googletest//:gtest_main",
"@com_google_absl//absl/flags:flag",
"@com_google_absl//absl/status",
"@com_google_absl//absl/strings:str_format",
"@com_google_sentencepiece//:sentencepiece_cc_proto",
Expand All @@ -274,7 +273,6 @@ cc_test(
"//file/base:path",
"//file/localfile",
"@com_google_googletest//:gtest_main",
"@com_google_absl//absl/flags:flag",
"@com_google_absl//absl/strings:str_format",
"@com_google_sentencepiece//:sentencepiece_cc_proto",
"@com_google_sentencepiece//:sentencepiece_processor",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ limitations under the License.
#include "file/base/path.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "absl/flags/flag.h"
#include "absl/strings/str_format.h"
#include "src/sentencepiece.proto.h"
#include "src/sentencepiece_processor.h"
Expand Down Expand Up @@ -80,8 +79,7 @@ TEST(OptimizedEncoder, ConfigConverter) {
std::string config;

auto status = internal::TFReadFileToString(
file::JoinPath(absl::GetFlag(FLAGS_test_srcdir), kConfigFilePath),
&config);
file::JoinPath(::testing::SrcDir(), kConfigFilePath), &config);
ASSERT_TRUE(status.ok());

::sentencepiece::SentencePieceProcessor processor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ limitations under the License.
#include "file/base/path.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "absl/flags/flag.h"
#include "absl/status/status.h"
#include "absl/strings/str_format.h"
#include "src/sentencepiece.proto.h"
Expand Down Expand Up @@ -162,8 +161,7 @@ TEST(OptimizedEncoder, NormalizeStringWhitespacesRemove) {
TEST(OptimizedEncoder, ConfigConverter) {
std::string config;
auto status = internal::TFReadFileToString(
file::JoinPath(absl::GetFlag(FLAGS_test_srcdir), kConfigFilePath),
&config);
file::JoinPath(::testing::SrcDir(), kConfigFilePath), &config);
ASSERT_TRUE(status.ok());

::sentencepiece::SentencePieceProcessor processor;
Expand Down

0 comments on commit d8d1544

Please sign in to comment.