Datasets:
Update datasetChunker.py
Browse files- 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(
|
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
|