Upload configuration file
Browse files
config/textclassifier_good_pdfs.yaml
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
operators:
|
| 2 |
+
- id: create_urls
|
| 3 |
+
config:
|
| 4 |
+
type: function
|
| 5 |
+
function: data_strategies.32b_exploit.seed_pdf_parser.utils.create_url_dataset
|
| 6 |
+
function_config:
|
| 7 |
+
urls:
|
| 8 |
+
- "https://uwaterloo.ca/chemistry/sites/default/files/uploads/documents/avogadro-exam-solution-2010.pdf"
|
| 9 |
+
- id: get_pdf_bytes
|
| 10 |
+
config:
|
| 11 |
+
type: function
|
| 12 |
+
function: data_strategies.32b_exploit.seed_pdf_parser.utils.download_pdfs
|
| 13 |
+
input_ids:
|
| 14 |
+
- create_urls
|
| 15 |
+
- id: process_pdfs
|
| 16 |
+
config:
|
| 17 |
+
type: function
|
| 18 |
+
function: data_strategies.32b_exploit.seed_pdf_parser.utils.get_all_page_counts
|
| 19 |
+
input_ids:
|
| 20 |
+
- get_pdf_bytes
|
| 21 |
+
- id: get_page_bytes
|
| 22 |
+
config:
|
| 23 |
+
type: function
|
| 24 |
+
function: data_strategies.32b_exploit.seed_pdf_parser.utils.expand_and_extract_pages_raw_text
|
| 25 |
+
function_config:
|
| 26 |
+
page_count_column: page_count
|
| 27 |
+
input_ids:
|
| 28 |
+
- process_pdfs
|