Edit model card
Feature Description
Name en_ner_prompting
Version 0.0.3
spaCy >=3.4.3,<3.5.0
Default Pipeline tok2vec, ner
Components tok2vec, ner
Vectors 514157 keys, 514157 unique vectors (300 dimensions)
Sources n/a
License CC BY 3.0
Author Selas.ai

Description

Name entity recognition model to analyzing text-to-image prompts (Stable Diffusion).

The entities comprise 7 main categories and 11 subcategories for a total of 16 categories, extracted from a topic analysis made with BERTopic. The topic analysis can be explored the following visualization.

  β”œβ”€β”€ medium/
  β”‚   β”œβ”€β”€ photography
  β”‚   β”œβ”€β”€ painting
  β”‚   β”œβ”€β”€ rendering
  β”‚   └── illustration
  β”œβ”€β”€ influence/
  β”‚   β”œβ”€β”€ artist
  β”‚   β”œβ”€β”€ genre
  β”‚   β”œβ”€β”€ artwork
  β”‚   └── repository
  β”œβ”€β”€ light
  β”œβ”€β”€ color
  β”œβ”€β”€ composition
  β”œβ”€β”€ detail
  └── context/
      β”œβ”€β”€ era
      β”œβ”€β”€ weather
      └── emotion

Prompt data are from the diffusionDB database and were annotated by hand using Prodigy.

Label Scheme

View label scheme (16 labels for 1 components)
Component Labels
ner color, composition, context/emotion, context/era, context/weather, detail, influence/artist, influence/artwork, influence/genre, influence/repository, light, medium/illustration, medium/painting, medium/photography, medium/rendering, subject

Accuracy

Type Score
ENTS_F 73.42
ENTS_P 74.38
ENTS_R 72.49
TOK2VEC_LOSS 19323.84
NER_LOSS 144524.82
Downloads last month
2
Inference API
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.

Space using teo-sanchez/en_ner_prompting 1

Evaluation results