From 536cc335b229a4f87154a29855c56ecf7c390922 Mon Sep 17 00:00:00 2001 From: luoyang Date: Thu, 20 Aug 2020 21:27:38 +0800 Subject: [PATCH] Fix bugs in c-api text --- mindspore/ccsrc/minddata/dataset/api/text.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mindspore/ccsrc/minddata/dataset/api/text.cc b/mindspore/ccsrc/minddata/dataset/api/text.cc index dfc1dbfaec3..5e5846ff064 100644 --- a/mindspore/ccsrc/minddata/dataset/api/text.cc +++ b/mindspore/ccsrc/minddata/dataset/api/text.cc @@ -37,16 +37,16 @@ LookupOperation::LookupOperation(const std::shared_ptr &vocab, const std: bool LookupOperation::ValidateParams() { if (vocab_ == nullptr) { - LOG(ERROR) << "Lookup: vocab object type is incorrect or null."; + MS_LOG(ERROR) << "Lookup: vocab object type is incorrect or null."; return false; } if (unknown_token_.empty()) { - LOG(ERROR) << "Lookup: no unknown token is specified."; + MS_LOG(ERROR) << "Lookup: no unknown token is specified."; return false; } else { default_id_ = vocab_->Lookup(unknown_token_); if (default_id_ == Vocab::kNoTokenExists) { - LOG(ERROR) << "Lookup: unknown_token: [" + unknown_token_ + "], does not exist in vocab."; + MS_LOG(ERROR) << "Lookup: unknown_token: [" + unknown_token_ + "], does not exist in vocab."; return false; } }