Instructions to use bitextor/bicleaner-ai-full-en-fr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bitextor/bicleaner-ai-full-en-fr with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, XLMRBicleanerAI tokenizer = AutoTokenizer.from_pretrained("bitextor/bicleaner-ai-full-en-fr") model = XLMRBicleanerAI.from_pretrained("bitextor/bicleaner-ai-full-en-fr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download metadata.yaml from bitextor/bicleaner-ai-full-en-fr: direct link, hf CLI and curl.
- Browser
- Download file 790 Bytes
-
https://huggingface.co/bitextor/bicleaner-ai-full-en-fr/resolve/main/metadata.yaml
- Command line
-
hf download hf://bitextor/bicleaner-ai-full-en-fr/metadata.yaml
-
curl -L -o metadata.yaml https://huggingface.co/bitextor/bicleaner-ai-full-en-fr/resolve/main/metadata.yaml
790 Bytes
| bicleaner_ai_version: 2.0 | |
| precision_score: 0.919 | |
| recall_score: 0.910 | |
| f1_score: 0.914 | |
| matthews_corr_coef: 0.905 | |
| source_lang: en | |
| target_lang: fr | |
| porn_removal_file: porn_removal.ftz | |
| porn_removal_side: sl | |
| source_lm: lm.en | |
| target_lm: lm.fr | |
| lm_type: CHARACTER | |
| clean_mean_perp: -1.0156188418316119 | |
| clean_stddev_perp: 0.17087354117840853 | |
| noisy_mean_perp: -4.063329428662187 | |
| noisy_stddev_perp: 0.17271798388193668 | |
| classifier_type: xlmr | |
| classifier_settings: | |
| activation: relu | |
| base_model: jplu/tf-xlm-roberta-base | |
| batch_size: 96 | |
| calibration_params: [0.93400604, -0.24411866] | |
| epochs: 15 | |
| loss: binary_crossentropy | |
| maxlen: 150 | |
| model_name: bitextor/bicleaner-ai-full-en-fr | |
| n_classes: 2 | |
| n_hidden: 2048 | |
| patience: 3 | |
| steps_per_epoch: 3000 | |
| warmup_steps: 1000 | |