vishesh-t27 commited on
Commit
00f4956
·
verified ·
1 Parent(s): e253817

Update tokenization_nandi.py

Browse files
Files changed (1) hide show
  1. tokenization_nandi.py +5 -5
tokenization_nandi.py CHANGED
@@ -100,11 +100,11 @@ class NandiTokenizer(TokenizersBackend):
100
  return t
101
 
102
  # Only inject when special tokens are disabled
103
- if not add_special_tokens:
104
- if isinstance(text, list):
105
- text = [add_prefix(t) for t in text]
106
- else:
107
- text = add_prefix(text)
108
 
109
  return super().__call__(text, *args, **kwargs)
110
 
 
100
  return t
101
 
102
  # Only inject when special tokens are disabled
103
+ #if not add_special_tokens:
104
+ if isinstance(text, list):
105
+ text = [add_prefix(t) for t in text]
106
+ else:
107
+ text = add_prefix(text)
108
 
109
  return super().__call__(text, *args, **kwargs)
110