Upload configuration file
Browse files
config/textclassifier_inference_cc_safe__v2.yaml
CHANGED
|
@@ -2,16 +2,24 @@ operators:
|
|
| 2 |
- id: create_urls
|
| 3 |
config:
|
| 4 |
type: function
|
| 5 |
-
function: data_strategies.32b_exploit.seed_pdf_parser.utils.
|
| 6 |
function_config:
|
| 7 |
urls:
|
| 8 |
-
- "https://digitalcorpora.s3.amazonaws.com/corpora/files/CC-MAIN-2021-31-PDF-UNTRUNCATED/zipfiles/0000-0999
|
| 9 |
-
- id:
|
| 10 |
-
config:
|
| 11 |
-
type:
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
- id: create_urls
|
| 3 |
config:
|
| 4 |
type: function
|
| 5 |
+
function: data_strategies.32b_exploit.seed_pdf_parser.utils.make_cc_safe_untruncated_zip_file_urls
|
| 6 |
function_config:
|
| 7 |
urls:
|
| 8 |
+
- "https://digitalcorpora.s3.amazonaws.com/corpora/files/CC-MAIN-2021-31-PDF-UNTRUNCATED/zipfiles/0000-0999"
|
| 9 |
+
# - id: create_urls
|
| 10 |
+
# config:
|
| 11 |
+
# type: function
|
| 12 |
+
# function: data_strategies.32b_exploit.seed_pdf_parser.utils.download_digital_corpora
|
| 13 |
+
# function_config:
|
| 14 |
+
# urls:
|
| 15 |
+
# - "https://digitalcorpora.s3.amazonaws.com/corpora/files/CC-MAIN-2021-31-PDF-UNTRUNCATED/zipfiles/0000-0999"
|
| 16 |
+
#
|
| 17 |
+
# - id: classify_fasttext
|
| 18 |
+
# config:
|
| 19 |
+
# type: fasttext
|
| 20 |
+
# hf_repo_id: mlfoundations-dev/science_pdf_fasttext_classifier_v2
|
| 21 |
+
# input_column: text
|
| 22 |
+
# target_label: "__label__QA_doc"
|
| 23 |
+
# filter_threshold: 0.5
|
| 24 |
+
# input_ids:
|
| 25 |
+
# - create_urls
|