-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51c4e08
commit a1a58ec
Showing
9 changed files
with
207 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,10 @@ streams: | |
- "$.attributes[?(@.exp__ft_lang_id_en_paragraph_with_doc_score_v2__doc_en[0][2] <= 0.5)]" | ||
- "[email protected][?(@.bff_duplicate_paragraph_spans && @.bff_duplicate_paragraph_spans[0] && @.bff_duplicate_paragraph_spans[0][2] >= 1.0)]" | ||
|
||
span_replacement: | ||
- span: "$.attributes.exp__cld2_en_paragraph_with_doc_score_v2__not_en" | ||
min_score: 0.1 | ||
replacement: '' | ||
text_modification: | ||
span_replacement: | ||
- span: "$.attributes.exp__cld2_en_paragraph_with_doc_score_v2__not_en" | ||
min_score: 0.1 | ||
replacement: '' | ||
|
||
processes: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,15 +157,17 @@ Further, we override the number of processes to use to 96 using the `--processes | |
"[email protected][?(@.bff_duplicate_paragraph_spans && @.bff_duplicate_paragraph_spans[0] && @.bff_duplicate_paragraph_spans[0][2] >= 1.0)]" | ||
] | ||
}, | ||
# span replacement allows you to replace spans of text with a different string | ||
"span_replacement": [ | ||
{ | ||
# remove paragraphs whose not-English cld2 socre is below 0.9 in a document | ||
"span": "$.attributes.exp__cld2_en_paragraph_with_doc_score_v2__not_en", | ||
"min_score": 0.1, | ||
"replacement": "" | ||
} | ||
] | ||
"text_modification": { | ||
# span replacement allows you to replace spans of text with a different string | ||
"span_replacement": [ | ||
{ | ||
# remove paragraphs whose not-English cld2 socre is below 0.9 in a document | ||
"span": "$.attributes.exp__cld2_en_paragraph_with_doc_score_v2__not_en", | ||
"min_score": 0.1, | ||
"replacement": "" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
# this process option is overridden by the command line flag | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.