Downloads · 30 days
6
2% of all-time downloads
jquigl/electra-movie-genre
electra-movie-genre is a text classification model from jquigl. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as cc-by-4.0.
Fine-tuned version of "deepset/electra-base-squad2" on a corpus of IMDB movie descriptions and the relevant genre.
Downloads · 30 days
6
2% of all-time downloads
All-time downloads
383
Public
Repo size
876 MB
Likes
0
Public
Click a slice to open those files.
.bin438 MB · 100%
From the Hugging Face model README
Fine-tuned version of "deepset/electra-base-squad2" on a corpus of IMDB movie descriptions and the relevant genre.
Fine-tuned version of "deepset/electra-base-squad2" on a corpus of IMDB movie descriptions and the relevant genre.
Classifying movie descriptions into 1 of 16 genres. Many movies involve multiple genres but this model attempts to classify the primary/first genre mentioned on IMDB. Genres include: Fantasy, Romance, Thriller, Biography, Horror, Action, Crime, Animation, Adventure, Mystery, War, Family, History, Scifi, Film-noir, Sports
More information needed
More information needed
More information needed
More information needed
Information regarding the training dataset can be found here: https://huggingface.co/datasets/jquigl/imdb-genres
More information needed
More information needed
More information needed
More information needed
More information needed
Hugging Face, Jack Quigley
More information needed
Use the code below to get started with the model.
<details> <summary> Click to expand </summary>from transformers import AutoTokenizer, pipeline
from transformers import ElectraConfig, ElectraForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("deepset/electra-base-squad2")
model = ElectraForSequenceClassification.from_pretrained('jquigl/electra-movie-genre')
classifier = pipeline("text-classification", model = model, tokenizer = tokenizer)
example = classifier("A Manny Velazquez underground slasher tribute about a number of serial killers on the loose in Chicago and begins a murder spree.")
print(example[0])
#LABEL_0 = Fantasy
#LABEL_1 = Romance
#LABEL_2 = Thriller
#LABEL_3 = Biography
#LABEL_4 = Horror
#LABEL_5 = Action
#LABEL_6 = Crime
#LABEL_7 = Animation
#LABEL_8 = Adventure
#LABEL_9 = Mystery
#LABEL_10 = War
#LABEL_11 = Family
#LABEL_12 = History
#LABEL_13 = Scifi
#LABEL_14 = Film-noir
#LABEL_15 = Sports
</details>