Skip to content
Snippets Groups Projects
Commit 1ade7b11 authored by Solene Tarride's avatar Solene Tarride Committed by Solene Tarride
Browse files

Replace linebreaks with spaces for LM

parent 0c471127
No related branches found
No related tags found
No related merge requests found
......@@ -370,7 +370,7 @@ class ArkindexExtractor:
), "Tokens should be single characters."
# Build LM corpus
train_corpus = [text for text in self.data["train"].values()]
train_corpus = [text.replace("\n", " ") for text in self.data["train"].values()]
tokenizer = Tokenizer(
train_corpus,
outdir=self.output / "language_model",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment