We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75f2c3f commit ad634b2Copy full SHA for ad634b2
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 != "" and text != " "]
+ text_split = [text for text in text_split if text not in ("", " ")]
71
generator = GeneratorFromStrings(text_split, count=len(text_split))
72
return list(generator)
73
0 commit comments