forked from mozilla/translations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove num_mismatch filter for Chinese It is removing a lot of sentences that have exactly the same numbers. Seems that is happenning when the Chinese side has the numbers glued to the Chinese characters. * Remove displaystyle in WikiMatrix * Normalize to full-width punctuation * Do not omit the character preceeding the period --------- Co-authored-by: Evgeny Pavlov <[email protected]>
- Loading branch information
Showing
4 changed files
with
69 additions
and
16 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
pipeline/clean/opuscleaner/configs/en-zh/WikiMatrix-v1.filters.json
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"version": 1, | ||
"files": [ | ||
], | ||
"filters": [ | ||
{ | ||
"filter": "regexp", | ||
"parameters": { | ||
"PATTERN": "s#\\{(?:[^{}]++|(?R))*+\\}##g" | ||
}, | ||
"language": "<src>" | ||
}, | ||
{ | ||
"filter": "regexp", | ||
"parameters": { | ||
"PATTERN": "s#\\{(?:[^{}]++|(?R))*+\\}##g" | ||
}, | ||
"language": "<trg>" | ||
} | ||
] | ||
} |
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
21 changes: 21 additions & 0 deletions
21
pipeline/clean/opuscleaner/configs/zh-en/WikiMatrix-v1.filters.json
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"version": 1, | ||
"files": [ | ||
], | ||
"filters": [ | ||
{ | ||
"filter": "regexp", | ||
"parameters": { | ||
"PATTERN": "s#\\{(?:[^{}]++|(?R))*+\\}##g" | ||
}, | ||
"language": "<src>" | ||
}, | ||
{ | ||
"filter": "regexp", | ||
"parameters": { | ||
"PATTERN": "s#\\{(?:[^{}]++|(?R))*+\\}##g" | ||
}, | ||
"language": "<trg>" | ||
} | ||
] | ||
} |
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