NilanE commited on
Commit
a3a7925
1 Parent(s): 4d9e367

Update datasetChunker.py

Browse files
Files changed (1) hide show
  1. datasetChunker.py +1 -1
datasetChunker.py CHANGED
@@ -79,7 +79,7 @@ for doc in data:
79
  out_trg.pop()
80
  out_src_string = "\n".join(out_src)
81
  trg_src_string = "\n".join(out_trg)
82
- tokenCount = len(tokenizer.tokenize(prompt + out_src_string.strip() + trg_src_string.strip()))
83
  longLines += 1
84
 
85
  lastTokenCount = tokenCount
 
79
  out_trg.pop()
80
  out_src_string = "\n".join(out_src)
81
  trg_src_string = "\n".join(out_trg)
82
+ tokenCount = len(tokenizer.tokenize(out_src_string.strip() + trg_src_string.strip())) + promptTokens
83
  longLines += 1
84
 
85
  lastTokenCount = tokenCount