<|nospeech|> tokens in seq2seq/whisper
In creating my text data for a whisper fine-tuning, can I use “<|nospeech|>” directly as the text?  (This is for my wife, who’s breathing with a ventilator – I want to ensure the ventilator sound is properly trained as being NOT speech.)Also, while I plan on having spans of noise mapped to the nospeech token, is it possible to put it amidst a single sentence?For instance, if the audio has sentences with gaps in it, like for normal spoken delays: “Hmm… [brief pause]… Yeah I believe so.”   Is <|nospeech|> suitable to place in the pause?[Edit] This is the script I’ve been using to fine-tune a whisper/hf model with my own recordings/transcriptions of my wife:github.comhuggingface/transformers/blob/main/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py#!/usr/bin/env python
# coding=utf-8
# Copyright 2021 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Fine-tuning the library models for sequence to sequence speech recognition.
"""
# You can also adapt this script on your own sequence to sequence speech
# recognition task. Pointers for this are left as comments.This file has been truncated.show original