Spaces:
Runtime error
Runtime error
victormiller
commited on
Commit
•
82be905
1
Parent(s):
4516bfc
Update curated.py
Browse files- curated.py +11 -14
curated.py
CHANGED
@@ -680,20 +680,17 @@ filtering_process = Div(
|
|
680 |
P(B("Download and Extraction: "), "Original PDF files download from", A("https://philarchive.org/oai.pl", href="https://philarchive.org/oai.pl"), ". All available PDF's were downloaded. Each PDF was converted to text using java", D_code("-jar ../philpapers_resources/src/pdfbox-app-2.0.21.jar ExtractText {f0} {FOUT.name}", language="java"), ". After converting to text formatting, a language was detected and added using the langdetect (citation needed) library."),
|
681 |
H4("Filtering"),
|
682 |
Ul(
|
683 |
-
Li(P(B("Hyphenation Removal:"), D_code("end-of",
|
684 |
-
Li(P(B("Newline Filtering"), "")),
|
685 |
-
Li(P(B("Header/Footer Filtering"), "")),
|
686 |
-
Li(P(B("Double Whitespace Filtering"), "")),
|
687 |
-
Li(P(B("Mean Line Length Check"), "")),
|
688 |
-
Li(P(B("CID Percentage Filter "), "")),
|
689 |
-
Li(P(B("Letterness Filter"), "")),
|
690 |
-
Li(P(B("Removing Leading/Trailing Numbers"), "")),
|
691 |
-
Li(P(B("Fixing Unicode Issues"), "")),
|
692 |
-
Li(P(B("Combining Diacritics Correction"), "")),
|
693 |
-
Li(P(B("Unigram Log Probability"), "")),
|
694 |
-
Li(""),
|
695 |
-
|
696 |
-
|
697 |
),
|
698 |
table_div_phil,
|
699 |
Details(
|
|
|
680 |
P(B("Download and Extraction: "), "Original PDF files download from", A("https://philarchive.org/oai.pl", href="https://philarchive.org/oai.pl"), ". All available PDF's were downloaded. Each PDF was converted to text using java", D_code("-jar ../philpapers_resources/src/pdfbox-app-2.0.21.jar ExtractText {f0} {FOUT.name}", language="java"), ". After converting to text formatting, a language was detected and added using the langdetect (citation needed) library."),
|
681 |
H4("Filtering"),
|
682 |
Ul(
|
683 |
+
Li(P(B("Hyphenation Removal:"), D_code("end-of", language="python"), " becomes ", D_code("end of", language="python"))),
|
684 |
+
Li(P(B("Newline Filtering:"), D_code("This is/na sentence.", language="python"), " becomes ", D_code("This is a sentence.", language="python")))),
|
685 |
+
Li(P(B("Header/Footer Filtering:"), D_code("(c) 2023 Company Name.", language="python"), " is removed ",))),
|
686 |
+
Li(P(B("Double Whitespace Filtering:"), D_code("This is a test.", language="python"), " becomes ", D_code("This is a test.", language="python")))),
|
687 |
+
Li(P(B("Mean Line Length Check: "), "removes paragraphs with an average line length of < 2.0")),
|
688 |
+
Li(P(B("CID Percentage Filter: "), "removes LaTex heavy paragraphs that contain over 10% “CID” font artifacts.")),
|
689 |
+
Li(P(B("Letterness Filter: "), "discards paragraphs with a low proportion of letters")),
|
690 |
+
Li(P(B("Removing Leading/Trailing Numbers: "), "removes numbers at the start or end of paragraphs. ", D_code("1 This is a sentence.", language="python"), " becomes ", D_code("This is a sentence.", language="python")))),
|
691 |
+
Li(P(B("Fixing Unicode Issues: "), "fixes Unicode issues.",)),
|
692 |
+
Li(P(B("Combining Diacritics Correction: "), D_code("a'", language="python"), " becomes ", D_code("å", language="python")))),
|
693 |
+
Li(P(B("Unigram Log Probability: "), "the document must have higher than -20 average unigram log probability.")),
|
|
|
|
|
|
|
694 |
),
|
695 |
table_div_phil,
|
696 |
Details(
|