We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad634b2 commit 3f6c10dCopy full SHA for 3f6c10d
src/arc_spice/data/multieurlex_utils.py
@@ -67,7 +67,7 @@ def extract_articles(
67
68
def _make_ocr_data(text: str) -> list[tuple[Image.Image, str]]:
69
text_split = text.split()
70
- text_split = [text for text in text_split if text not in ("", " ")]
+ text_split = [text for text in text_split if text not in ("", " ", None)]
71
generator = GeneratorFromStrings(text_split, count=len(text_split))
72
return list(generator)
73
0 commit comments