vishesh-t27 commited on
Commit
c5d242d
·
verified ·
1 Parent(s): 138e620

Update tokenization_nandi.py

Browse files
Files changed (1) hide show
  1. tokenization_nandi.py +5 -6
tokenization_nandi.py CHANGED
@@ -100,13 +100,12 @@ 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
- print(text)
110
 
111
  return super().__call__(text, *args, **kwargs)
112
 
 
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
 
110
  return super().__call__(text, *args, **kwargs)
111