Update README.md
Browse files
README.md
CHANGED
@@ -49,6 +49,6 @@ ds = ds.map(lambda x: {
|
|
49 |
"images": render(x["pdf"]),
|
50 |
"text": extract_text(x["pdf"])
|
51 |
}, remove_columns=["pdf"])
|
52 |
-
ds = ds.filter(lambda x: len(x["text"]) > 0)
|
53 |
ds.push_to_hub("lhoestq/resumes-raw-pdf-for-ocr")
|
54 |
```
|
|
|
49 |
"images": render(x["pdf"]),
|
50 |
"text": extract_text(x["pdf"])
|
51 |
}, remove_columns=["pdf"])
|
52 |
+
ds = ds.filter(lambda x: len(x["text"].strip()) > 0)
|
53 |
ds.push_to_hub("lhoestq/resumes-raw-pdf-for-ocr")
|
54 |
```
|