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