[Python] how to solve this error ValueError: Failed to construct dataset "imdb_reviews"

Discussão em 'Python' iniciado por Stack, Agosto 6, 2025.

  1. Stack

    Stack Membro Participativo

    ValueError: Failed to construct dataset "imdb_reviews",
    builder_kwargs "{'config': 'subwords8k', 'data_dir': None}":
    BuilderConfig subwords8k not found with version None.
    Here are 10 BuilderConfigs whose name closely match:


    I've got this exact error when I was following this GitHub repo

    I was in course 3 week 3 lesson 1b. I was trying to get the data but the problem is in subwords8k as I googled and I found out that I need to make a tokenizer by myself not just let subwords8k do it automatically because I think that's what it does but I couldn't do it and solve my problem.

    import tensorflow_datasets as tfds
    import tensorflow as tf
    dataset, info = tfds.load('imdb_reviews/subwords8k', with_info=True, as_supervised=True)

    Continue reading...

Compartilhe esta Página