styal commited on
Commit
d352f3d
·
verified ·
1 Parent(s): 2dbdc26

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -0
README.md ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ Finepdfs filtered using this code:
2
+ ```
3
+ def my_filter(example):
4
+ lscore = example["page_average_lid_score"]*example["full_doc_lid_score"] > 0.85*0.85
5
+ lenglish = example["language"] == "eng_Latn" and example["page_average_lid"] == "eng_Latn" and example["full_doc_lid"] == "eng_Latn"
6
+ fwscore = (sum(example["fw_edu_scores"])/len(example["fw_edu_scores"])) > 3
7
+ return lscore and lenglish and fwscore
8
+ ```