[linux] ValueError: Please pass `features` or at least one example when writing data

python - ValueError: Please pass `features` or at least one example when writing data - Stack Overflow

from datasets import load_dataset,Features,Value
context_feat = Features({'text': Value(dtype='string', id=None)})
dataset = load_dataset(
    path="text",
    data_dir=path.data_dir,
    data_files="input.fm.plus.fc.txt",
    split="train",
    features=context_feat
)

 

你可能感兴趣的:(人工智能,机器学习,深度学习)