/ Модель

Характеристики

Контекст
512 токенов
Параметры
137 млн
Архитектура
bert · dense
Библиотека
transformers
Опубликована
30 мар 2023

bert-base-uncased-finetuned-spoken-squad

Ответы на вопросыТекст → текст7 профессий

Англоязычная модель BERT для извлечения ответов на вопросы по расшифровкам устной речи, в том числе содержащим ошибки распознавания.

39скачиваний за 30 дней0лайковвеса обновлены31 мая 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Это система извлекающего ответа на вопросы, созданная дообучением BERT-base-uncased для работы с текстами устной речи. Она использует архитектуру BERT с 136,7 млн параметров и предназначена для ответов по расшифровкам разговоров, интервью и других устных материалов. Модель обучалась на Spoken-SQuAD, где текстам добавляли шум, имитирующий разные уровни ошибок распознавания речи; контекстное окно составляет 512 токенов.

На тестах Spoken-SQuAD F1 составил 74,15% без дополнительного шума, 55,2% при WER 44,22% и 42,24% при WER 54,82%. Модель обрабатывает английский текст и возвращает извлечённый из контекста ответ. Для использования требуется библиотека Transformers; веса доступны в форматах PyTorch и safetensors. Лицензия в предоставленных данных не указана.

Сценарии применения

  • поиск ответа в расшифровке интервью
  • ответы на вопросы по транскриптам разговоров
  • извлечение фактов из текста телефонного разговора
  • поиск нужного фрагмента в стенограмме лекции

Ограничения

Качество снижается при росте ошибок распознавания: F1 падает с 74,15% без дополнительного шума до 42,24% при WER 54,82%. Модель рассчитана на английский текст и контекст до 512 токенов.

Для каких профессий подходит7

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

rein5/bert-base-uncased-finetuned-spoken-squad

Model Description

This model is an extractive question-answering system fine-tuned from the bert-base-uncased model specifically for the spoken language domain. It leverages the Spoken-SQuAD dataset, which introduces real-world challenges of understanding spoken content, such as dealing with different levels of word error rates (WERs).

Intended Use

The model is intended for use in natural language processing applications requiring understanding and answering questions from spoken language text. It is especially useful for scenarios involving transcripts of spoken conversations, interviews, or any spoken content converted to text.

Training Data

The model was trained on the Spoken-SQuAD dataset, a version of the SQuAD dataset adapted to simulate spoken language by incorporating noise in the form of word error rates. The dataset features various levels of WER to reflect different noise conditions commonly encountered in spoken language processing.

Dataset source: Spoken-SQuAD Dataset Repository

Training Procedure

The model was fine-tuned on the Spoken-SQuAD dataset starting from the bert-base-uncased model checkpoint. During training, we employed a batch size of 20, a learning rate of 5e-5, and trained the model for 2 epochs using the AdamW optimizer.

Evaluation Results

The model was evaluated on three versions of the Spoken-SQuAD dataset, each representing different levels of noise (WER):

  • No noise (22.73% WER)
    • Exact Match: 63.99%
    • F1 Score: 74.15%
  • Noise V1 (44.22% WER)
    • Exact Match: 40.35%
    • F1 Score: 55.2%
  • Noise V2 (54.82% WER)
    • Exact Match: 28.52%
    • F1 Score: 42.24%

How to Use

Here is how to load and use the model:

from transformers import AutoModelForQuestionAnswering, AutoTokenizer

model_name = "rein5/bert-base-uncased-finetuned-spoken-squad"
model = AutoModelForQuestionAnswering.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)

# Example of how to use the model to answer questions.
question = "What is the model used for?"
context = "This model is used for understanding and answering questions from spoken language text."

inputs = tokenizer(question, context, add_special_tokens=True, return_tensors="pt")
input_ids = inputs["input_ids"].tolist()[0]

outputs = model(**inputs)
answer_start_scores = outputs.start_logits
answer_end_scores = outputs.end_logits

# Get the most likely beginning of answer with the argmax of the score
answer_start = torch.argmax(answer_start_scores)
# Get the most likely end of answer with the argmax of the score
answer_end = torch.argmax(answer_end_scores) + 1

answer = tokenizer.convert_tokens_to_string(tokenizer.convert_ids_to_tokens(input_ids[answer_start:answer_end]))

print("Answer:", answer)

Source and Contributions

The training code and further details are available in the GitHub repository: spoken-squad-language-model. Contributions to both the model and the dataset are welcome.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers · question-answering

Можно запустить

Подбираем GPU…

Класс архитектуры
BertForQuestionAnswering
Ревизия весов
7fbf775

0 моделей