Skip to content
Snippets Groups Projects
Commit 619e1c5c authored by Solene Tarride's avatar Solene Tarride
Browse files

Replace linebreaks with spaces for LM

parent 510682db
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !287. Comments created here will be created in the context of that merge request.
......@@ -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