Add files
Browse files- config.json +30 -0
- lm.en +3 -0
- lm.zh +3 -0
- metadata.yaml +31 -0
- porn_removal.ftz +3 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +15 -0
- tf_model.h5 +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +21 -0
config.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bitextor/bicleaner-ai-full-en-zh",
|
3 |
+
"architectures": [
|
4 |
+
"XLMRBicleanerAI"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"head_activation": "relu",
|
11 |
+
"head_dropout": 0.1,
|
12 |
+
"head_hidden_size": 2048,
|
13 |
+
"hidden_act": "gelu",
|
14 |
+
"hidden_dropout_prob": 0.1,
|
15 |
+
"hidden_size": 768,
|
16 |
+
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 3072,
|
18 |
+
"layer_norm_eps": 1e-05,
|
19 |
+
"max_position_embeddings": 514,
|
20 |
+
"model_type": "xlm-roberta",
|
21 |
+
"num_attention_heads": 12,
|
22 |
+
"num_hidden_layers": 12,
|
23 |
+
"output_past": true,
|
24 |
+
"pad_token_id": 1,
|
25 |
+
"position_embedding_type": "absolute",
|
26 |
+
"transformers_version": "4.26.0",
|
27 |
+
"type_vocab_size": 1,
|
28 |
+
"use_cache": true,
|
29 |
+
"vocab_size": 250002
|
30 |
+
}
|
lm.en
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d5aa37092d069d7b516c945844bbd0fc4d66d1ad2f83d94d6116807765ce055c
|
3 |
+
size 94386442
|
lm.zh
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9ed515fa8ef1b52ec179a90718b851c3f61487ac2bebedae1b8a118933719c70
|
3 |
+
size 620105448
|
metadata.yaml
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
bicleaner_ai_version: 2.0.0rc3
|
2 |
+
precision_score: 0.784
|
3 |
+
recall_score: 0.961
|
4 |
+
f1_score: 0.864
|
5 |
+
matthews_corr_coef: 0.856
|
6 |
+
source_lang: en
|
7 |
+
target_lang: zh
|
8 |
+
porn_removal_file: porn_removal.ftz
|
9 |
+
porn_removal_side: sl
|
10 |
+
source_lm: lm.en
|
11 |
+
target_lm: lm.zh
|
12 |
+
lm_type: CHARACTER
|
13 |
+
clean_mean_perp: -1.7735313168021278
|
14 |
+
clean_stddev_perp: 0.40288332890825596
|
15 |
+
noisy_mean_perp: -5.398234524131153
|
16 |
+
noisy_stddev_perp: 0.21481821570355059
|
17 |
+
classifier_type: xlmr
|
18 |
+
classifier_settings:
|
19 |
+
activation: relu
|
20 |
+
base_model: jplu/tf-xlm-roberta-base
|
21 |
+
batch_size: 64
|
22 |
+
calibration_params: [1.01527429, -0.24593119]
|
23 |
+
epochs: 7
|
24 |
+
loss: binary_crossentropy
|
25 |
+
maxlen: 150
|
26 |
+
model_name: bitextor/bicleaner-ai-full-en-zh
|
27 |
+
n_classes: 2
|
28 |
+
n_hidden: 2048
|
29 |
+
patience: 3
|
30 |
+
steps_per_epoch: 4000
|
31 |
+
warmup_steps: 1000
|
porn_removal.ftz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:24eb62bb5b3387878c50cd5fabbead7015c2b9a8359ec2651a47806cf1f531ba
|
3 |
+
size 1213624
|
sentencepiece.bpe.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
|
3 |
+
size 5069051
|
special_tokens_map.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"content": "<mask>",
|
7 |
+
"lstrip": true,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"sep_token": "</s>",
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7ea206057f3fc8b6dc20a08c83f2217b5665fe16fae5c2d3fde59b715b8fd715
|
3 |
+
size 1116401536
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:672b5602c725cafd47011e4e49d4b211fd746d0de2e8e187549f0324685987d0
|
3 |
+
size 17098332
|
tokenizer_config.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"__type": "AddedToken",
|
7 |
+
"content": "<mask>",
|
8 |
+
"lstrip": true,
|
9 |
+
"normalized": true,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false
|
12 |
+
},
|
13 |
+
"model_max_length": 1000000000000000019884624838656,
|
14 |
+
"name_or_path": "jplu/tf-xlm-roberta-base",
|
15 |
+
"pad_token": "<pad>",
|
16 |
+
"sep_token": "</s>",
|
17 |
+
"sp_model_kwargs": {},
|
18 |
+
"special_tokens_map_file": null,
|
19 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
20 |
+
"unk_token": "<unk>"
|
21 |
+
}
|