Text Classification
Transformers
TensorFlow
distilbert
generated_from_keras_callback
text-embeddings-inference
Instructions to use Rishi-19/Profanity_Check_LemmatizedData with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Rishi-19/Profanity_Check_LemmatizedData with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Rishi-19/Profanity_Check_LemmatizedData")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Rishi-19/Profanity_Check_LemmatizedData") model = AutoModelForSequenceClassification.from_pretrained("Rishi-19/Profanity_Check_LemmatizedData", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress epoch 0
Browse filesFiles changed (7)
- README.mdAdded+55
- config.jsonAdded+31
- special_tokens_map.jsonAdded+7
- tf_model.h5Added+3
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+55
- vocab.txtAdded
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455---license: apache-2.0base_model: distilbert-base-uncasedtags:- generated_from_keras_callbackmodel-index:- name: Rishi-19/Profanity_Check_LemmatizedData results: []---
<!-- This model card has been generated automatically according to the information Keras had access to. You shouldprobably proofread and complete it, then remove this comment. -->
# Rishi-19/Profanity_Check_LemmatizedData
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.It achieves the following results on the evaluation set:- Train Loss: 0.2045- Validation Loss: 0.1395- Train Accuracy: 0.9545- Epoch: 0
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 3145, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}- training_precision: float32
### Training results
| Train Loss | Validation Loss | Train Accuracy | Epoch ||:----------:|:---------------:|:--------------:|:-----:|| 0.2045 | 0.1395 | 0.9545 | 0 |
### Framework versions
- Transformers 4.35.0- TensorFlow 2.14.0- Datasets 2.14.6- Tokenizers 0.14.112345678910111213141516171819202122232425262728293031{ "_name_or_path": "distilbert-base-uncased", "activation": "gelu", "architectures": [ "DistilBertForSequenceClassification" ], "attention_dropout": 0.1, "dim": 768, "dropout": 0.1, "hidden_dim": 3072, "id2label": { "0": "Profanity_not_detected", "1": "Profanity_detected" }, "initializer_range": 0.02, "label2id": { "Profanity_detected": 1, "Profanity_not_detected": 0 }, "max_position_embeddings": 512, "model_type": "distilbert", "n_heads": 12, "n_layers": 6, "pad_token_id": 0, "qa_dropout": 0.1, "seq_classif_dropout": 0.2, "sinusoidal_pos_embds": false, "tie_weights_": true, "transformers_version": "4.35.0", "vocab_size": 30522}1234567{ "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}123version https://git-lfs.github.com/spec/v1oid sha256:6d9eb020e2dbe5fb90cb26aa0f2b511bce75e2d582c59b92bb5ae8f2fe092f6esize 26795180812345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ "added_tokens_decoder": { "0": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "100": { "content": "[UNK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "101": { "content": "[CLS]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "102": { "content": "[SEP]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "103": { "content": "[MASK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "clean_up_tokenization_spaces": true, "cls_token": "[CLS]", "do_lower_case": true, "mask_token": "[MASK]", "model_max_length": 512, "pad_token": "[PAD]", "sep_token": "[SEP]", "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "DistilBertTokenizer", "unk_token": "[UNK]"}README.mdAdded+55
config.jsonAdded+31
special_tokens_map.jsonAdded+7
tf_model.h5Added+3
tokenizer.jsonAdded
tokenizer_config.jsonAdded+55
vocab.txtAdded