Не удалось загрузить DISTILBERT_BASE_UNCASED - Трансформеры обнимаются - PullRequest
1 голос
/ 08 мая 2020

Я пытаюсь выполнить:

import ktrain

from ktrain import text

MODEL_NAME='distilbert-base-uncased'

t=text.Transformer(MODEL_NAME, maxlen=500, classes=np.unique(y_train))

Я получаю следующую ошибку:

*OSError: Model name 'distilbert-base-uncased' was not found in tokenizers model name list (distilbert-base-uncased, distilbert-base-uncased-distilled-squad, distilbert-base-cased, distilbert-base-cased-distilled-squad, distilbert-base-german-cased, distilbert-base-multilingual-cased). We assumed 'distilbert-base-uncased' was a path, a model identifier, or url to a directory containing vocabulary files named ['vocab.txt'] but couldn't find such vocabulary files at this path or url.*

ktrain версия 0.14.6 трансформаторы версия 2.8.0

Библиотеки были установлены с помощью pip install.

Любая помощь приветствуется.

...