Text Classification
Transformers
Safetensors
English
distilbert
movie-certification
content-rating
movie-script
nlp
multilingual
knowledge-distillation
long-document
explainable-ai
text-embeddings-inference
Instructions to use pratikkalamkar/moviecert-teacher-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pratikkalamkar/moviecert-teacher-en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="pratikkalamkar/moviecert-teacher-en")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("pratikkalamkar/moviecert-teacher-en") model = AutoModelForSequenceClassification.from_pretrained("pratikkalamkar/moviecert-teacher-en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,54 +1,218 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
datasets:
|
| 4 |
-
- pratikkalamkar/Movie_Scripts_with_Age_Ratings_by_Pratik_Kalamkar-EN
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
metrics:
|
| 8 |
-
- accuracy
|
| 9 |
-
- precision
|
| 10 |
-
- recall
|
| 11 |
-
- f1
|
| 12 |
-
base_model:
|
| 13 |
-
- distilbert/distilbert-base-multilingual-cased
|
| 14 |
-
pipeline_tag: text-classification
|
| 15 |
-
library_name: transformers
|
| 16 |
-
tags:
|
| 17 |
-
- movie-certification
|
| 18 |
-
- movie-script
|
| 19 |
-
- content-rating
|
| 20 |
-
- text-classification
|
| 21 |
-
- nlp
|
| 22 |
-
- multilingual
|
| 23 |
-
- distilbert
|
| 24 |
-
- knowledge-distillation
|
| 25 |
-
- transformers
|
| 26 |
-
- english
|
| 27 |
-
---
|
| 28 |
-
This repository contains the English Teacher model developed for the paper
|
| 29 |
-
|
| 30 |
-
"Lightweight and Explainable Neural Models for Multilingual Movie Script Certification"
|
| 31 |
-
|
| 32 |
-
The model classifies full-length movie scripts into age-rating categories.
|
| 33 |
-
|
| 34 |
-
Citation
|
| 35 |
-
If you use this model, please cite:
|
| 36 |
-
|
| 37 |
-
Kalamkar, P. N., Peddi, P., & Sharma, Y. K. (2026).
|
| 38 |
-
|
| 39 |
-
"Lightweight and Explainable Neural Models for Multilingual Movie Script Certification."
|
| 40 |
-
|
| 41 |
-
International Journal of Information Technology and Computer Science (IJITCS), Volume 18, Issue 2, Pages 146–160.
|
| 42 |
-
|
| 43 |
-
DOI: 10.5815/ijitcs.2026.02.09
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
@article{kalamkar2026moviecertification,
|
| 46 |
-
author = {Pratik N. Kalamkar and Prasadu Peddi and Yogesh K. Sharma},
|
| 47 |
-
title = {Lightweight and Explainable Neural Models for Multilingual Movie Script Certification},
|
| 48 |
-
journal = {International Journal of Information Technology and Computer Science},
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
doi = {10.5815/ijitcs.2026.02.09}
|
| 54 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MovieCert English Teacher Model
|
| 2 |
+
|
| 3 |
+
## Model Details
|
| 4 |
+
|
| 5 |
+
### Model Description
|
| 6 |
+
|
| 7 |
+
This repository contains the English Teacher model developed for the research paper **"Lightweight and Explainable Neural Models for Multilingual Movie Script Certification."**
|
| 8 |
+
|
| 9 |
+
The model is fine-tuned from the multilingual DistilBERT architecture to classify full English movie scripts into age-rating categories. It serves as the teacher model in a knowledge distillation framework used to develop lightweight student models for efficient deployment.
|
| 10 |
+
|
| 11 |
+
- **Developed by:** Pratik N. Kalamkar
|
| 12 |
+
- **Funded by:** Self-funded academic research
|
| 13 |
+
- **Shared by:** Pratik N. Kalamkar
|
| 14 |
+
- **Model type:** Transformer-based sequence classification model (DistilBERT)
|
| 15 |
+
- **Language(s):** English
|
| 16 |
+
- **License:** Apache-2.0
|
| 17 |
+
- **Finetuned from model:** distilbert-base-multilingual-cased
|
| 18 |
+
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
## Model Sources
|
| 22 |
+
|
| 23 |
+
- **Repository:** https://github.com/pratik1986/Lightweight-and-Explainable-Neural-Models-for-Multilingual-Movie-Script-Certification
|
| 24 |
+
- **Paper:** https://doi.org/10.5815/ijitcs.2026.02.09
|
| 25 |
+
- **Dataset:** https://huggingface.co/datasets/pratikkalamkar/Movie_Scripts_with_Age_Ratings_by_Pratik_Kalamkar-EN
|
| 26 |
+
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
# Uses
|
| 30 |
+
|
| 31 |
+
## Direct Use
|
| 32 |
+
|
| 33 |
+
This model is intended for automated classification of English movie scripts into age-rating categories.
|
| 34 |
+
|
| 35 |
+
Potential applications include:
|
| 36 |
+
|
| 37 |
+
- Automated movie certification research
|
| 38 |
+
- Movie script analysis
|
| 39 |
+
- Content moderation
|
| 40 |
+
- Academic NLP research
|
| 41 |
+
- Benchmarking multilingual transformer models
|
| 42 |
+
|
| 43 |
+
---
|
| 44 |
+
|
| 45 |
+
## Downstream Use
|
| 46 |
+
|
| 47 |
+
The model may be used as:
|
| 48 |
+
|
| 49 |
+
- Teacher model for knowledge distillation
|
| 50 |
+
- Base model for further fine-tuning
|
| 51 |
+
- Feature extractor
|
| 52 |
+
- Long-document text classification research
|
| 53 |
+
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
+
## Out-of-Scope Use
|
| 57 |
+
|
| 58 |
+
This model is **not** intended for:
|
| 59 |
+
|
| 60 |
+
- Legal or official movie certification decisions
|
| 61 |
+
- Safety-critical systems
|
| 62 |
+
- Hate speech detection
|
| 63 |
+
- Sentiment analysis
|
| 64 |
+
- Medical or legal decision making
|
| 65 |
+
|
| 66 |
+
Predictions should not replace human review.
|
| 67 |
+
|
| 68 |
+
---
|
| 69 |
+
|
| 70 |
+
# Bias, Risks and Limitations
|
| 71 |
+
|
| 72 |
+
The model was trained using a curated dataset of English movie scripts and inherits limitations of the dataset, including:
|
| 73 |
+
|
| 74 |
+
- Limited dataset size
|
| 75 |
+
- Possible class imbalance
|
| 76 |
+
- Genre imbalance
|
| 77 |
+
- Cultural bias
|
| 78 |
+
- Language-specific ambiguity
|
| 79 |
+
|
| 80 |
+
Performance may decrease on scripts that differ substantially from the training distribution.
|
| 81 |
+
|
| 82 |
+
---
|
| 83 |
+
|
| 84 |
+
## Recommendations
|
| 85 |
+
|
| 86 |
+
The model should be used as an assistive tool rather than a replacement for human reviewers.
|
| 87 |
+
|
| 88 |
+
---
|
| 89 |
+
|
| 90 |
+
# Training Details
|
| 91 |
+
|
| 92 |
+
## Training Data
|
| 93 |
+
|
| 94 |
+
The model was trained using the **English Movie Scripts with Verified Age Ratings** https://huggingface.co/datasets/pratikkalamkar/Movie_Scripts_with_Age_Ratings_by_Pratik_Kalamkar-EN dataset curated by the author.
|
| 95 |
+
|
| 96 |
+
Training data consists of English movie scripts labelled with their corresponding age ratings.
|
| 97 |
+
|
| 98 |
+
---
|
| 99 |
+
|
| 100 |
+
## Training Procedure
|
| 101 |
+
|
| 102 |
+
The model was fine-tuned using the Hugging Face Transformers library.
|
| 103 |
+
|
| 104 |
+
### Preprocessing
|
| 105 |
+
|
| 106 |
+
- UTF-8 normalization
|
| 107 |
+
- Tokenization using DistilBERT tokenizer
|
| 108 |
+
- Sliding-window chunking for long movie scripts
|
| 109 |
+
- Chunk-level prediction aggregation
|
| 110 |
+
|
| 111 |
+
---
|
| 112 |
+
|
| 113 |
+
### Training Hyperparameters
|
| 114 |
+
|
| 115 |
+
- Base model: distilbert-base-multilingual-cased
|
| 116 |
+
- Epochs: 6
|
| 117 |
+
- Batch size (train): 8
|
| 118 |
+
- Batch size (evaluation): 16
|
| 119 |
+
- Learning rate: 2e-5
|
| 120 |
+
- Weight decay: 0.01
|
| 121 |
+
- Warmup steps: 50
|
| 122 |
+
- Optimizer: AdamW
|
| 123 |
+
- Maximum gradient norm: 1.0
|
| 124 |
+
- Early stopping patience: 2
|
| 125 |
+
- Mixed precision: Disabled (FP32)
|
| 126 |
+
|
| 127 |
+
---
|
| 128 |
+
|
| 129 |
+
# Evaluation
|
| 130 |
+
|
| 131 |
+
## Testing Data
|
| 132 |
+
|
| 133 |
+
Held-out English movie script test split.
|
| 134 |
+
|
| 135 |
+
---
|
| 136 |
+
|
| 137 |
+
## Metrics
|
| 138 |
+
|
| 139 |
+
The following metrics were used:
|
| 140 |
+
|
| 141 |
+
- Accuracy
|
| 142 |
+
- Precision
|
| 143 |
+
- Recall
|
| 144 |
+
- Macro F1-score
|
| 145 |
+
- Confusion Matrix
|
| 146 |
+
|
| 147 |
+
---
|
| 148 |
+
|
| 149 |
+
## Results
|
| 150 |
+
|
| 151 |
+
The complete experimental results are reported in the associated journal paper.
|
| 152 |
+
|
| 153 |
+
---
|
| 154 |
+
|
| 155 |
+
# Technical Specifications
|
| 156 |
+
|
| 157 |
+
## Model Architecture
|
| 158 |
+
|
| 159 |
+
- DistilBERT multilingual encoder
|
| 160 |
+
- Sequence Classification Head
|
| 161 |
+
- Fine-tuned on English movie scripts
|
| 162 |
+
|
| 163 |
+
---
|
| 164 |
+
|
| 165 |
+
## Software
|
| 166 |
+
|
| 167 |
+
- Python
|
| 168 |
+
- PyTorch
|
| 169 |
+
- Hugging Face Transformers
|
| 170 |
+
- Scikit-learn
|
| 171 |
+
|
| 172 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
|
| 174 |
+
# Citation
|
| 175 |
+
|
| 176 |
+
If you use this model in your research, please cite:
|
| 177 |
+
|
| 178 |
+
**BibTeX**
|
| 179 |
+
|
| 180 |
+
```bibtex
|
| 181 |
@article{kalamkar2026moviecertification,
|
| 182 |
+
author = {Pratik N. Kalamkar and Prasadu Peddi and Yogesh K. Sharma},
|
| 183 |
+
title = {Lightweight and Explainable Neural Models for Multilingual Movie Script Certification},
|
| 184 |
+
journal = {International Journal of Information Technology and Computer Science},
|
| 185 |
+
volume = {18},
|
| 186 |
+
number = {2},
|
| 187 |
+
pages = {146--160},
|
| 188 |
+
year = {2026},
|
| 189 |
+
doi = {10.5815/ijitcs.2026.02.09}
|
| 190 |
+
}
|
| 191 |
+
```
|
| 192 |
+
|
| 193 |
+
---
|
| 194 |
+
|
| 195 |
+
# More Information
|
| 196 |
+
|
| 197 |
+
This model is one component of the MovieCert multilingual movie certification framework comprising:
|
| 198 |
+
|
| 199 |
+
- English Teacher Model
|
| 200 |
+
- Hindi Teacher Model
|
| 201 |
+
- Marathi Teacher Model
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
---
|
| 205 |
+
|
| 206 |
+
# Model Card Author
|
| 207 |
+
|
| 208 |
+
Pratik N. Kalamkar
|
| 209 |
+
|
| 210 |
+
---
|
| 211 |
+
|
| 212 |
+
# Contact
|
| 213 |
+
|
| 214 |
+
For questions regarding the model or the associated research, please contact:
|
| 215 |
+
|
| 216 |
+
Pratik N. Kalamkar
|
| 217 |
+
|
| 218 |
+
GitHub: https://github.com/pratik1986
|