Edit model card
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/model-cards#model-card-metadata)

google/electra-large-discriminator finetuned for regression on imdb dataset ratings for 3 epoches.

Large examples tokenized with head and tail parts of a review, as described in How to Fine-Tune BERT for Text Classification?

def preprocess_function(example):
    tokens = tokenizer(example["text"], truncation=False)
    if len(tokens['input_ids']) > 512:
        tokens['input_ids'] = tokens['input_ids'][:129] + \
            [102] + tokens['input_ids'][-382:]
        tokens['token_type_ids'] = [0]*512
        tokens['attention_mask'] = [1]*512
    return tokens
Downloads last month
6
Inference Examples
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 AbstractQbit/electra_large_imdb_regression_htsplice 1