From 6f8910dbcb5068428981a5aa5e32202b5cfdf293 Mon Sep 17 00:00:00 2001 From: ly119399 Date: Mon, 20 Jun 2022 16:49:32 +0800 Subject: [PATCH] bug fix --- modelscope/utils/nlp/space/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modelscope/utils/nlp/space/utils.py b/modelscope/utils/nlp/space/utils.py index 822305fd..ba956b7d 100644 --- a/modelscope/utils/nlp/space/utils.py +++ b/modelscope/utils/nlp/space/utils.py @@ -169,8 +169,8 @@ class MultiWOZVocab(object): if include_oov: if self._word2idx.get(word, None) is None: raise ValueError( - 'Unknown word: %s. Vocabulary should include oovs here.' % - word) + 'Unknown word: %s. Vocabulary should include oovs here.' + % word) return self._word2idx[word] else: word = '' if word not in self._word2idx else word