Language models/Hugging Face/Model

electra-base-discriminator

by google·Last observed 2026-10-26
♥ 217 likes↓ 31.3M 30d downloads

ELECTRA is a method for pretraining transformer text encoders as discriminators: models learn to distinguish real input tokens from generated fake tokens. This repository includes pretraining code and supports fine-tuning for classification, question answering, and sequence tagging.

Useful for

  • Use the discriminator to inspect which tokens in a sentence may be replaced or fake.

Key features

  • The discriminator can score tokens in a sentence, as shown by an example that marks tokens in a sentence containing an inserted fake word.
  • The repository supports fine-tuning for classification, question answering, and sequence tagging tasks such as text chunking.

Project information

CategoryLanguage models
TypeModel
Author / organizationgoogle
Licenseapache-2.0
Last observed2026-10-26

Discussion

No comments yet.

Sign in with Google to comment. Browsing is open to everyone.

Community vote