distilbert Questions
5
def split_data(path):
df = pd.read_csv(path)
return train_test_split(df , test_size=0.1, random_state=100)
train, test = split_data(DATA_DIR)
train_texts, train_labels = train['text'].to_list(),...
Basketwork asked 21/8, 2020 at 5:59
1
I've been struggling with huggingface's DistilBERT model for some time now, since the documentation seems very unclear and their examples (e.g. https://github.com/huggingface/transformers/blob/mast...
Bronchopneumonia asked 8/12, 2019 at 22:56
2
When I run the demo.py
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("distilbert-base-multilingual-cased")
model = AutoModel.from_pretraine...
Hamner asked 21/12, 2020 at 3:6
1
© 2022 - 2024 — McMap. All rights reserved.