lhoestq HF Staff commited on
Commit
90dd267
·
verified ·
1 Parent(s): 0d2ab19

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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
  ```