yum-archive/TaSTT-Whisper

High-performance GPGPU inference of OpenAI's Whisper automatic speech recognition (ASR) model

git clone https://git.yummers.dev/yum-archive/TaSTT-Whisper

KonstantinSource codes8c4603c

master
1.0 KiB23 linesraw
1namespace Whisper
2{
3	/// <summary>Special tokens defined in the model</summary>
4	public readonly struct SpecialTokens
5	{
6		/// <summary>The end of a transcription</summary>
7		public readonly int TranscriptionEnd; // token_eot
8		/// <summary>Start of a transcription</summary>
9		public readonly int TranscriptionStart;   // token_sot
10		/// <summary>Represents the previous word in the transcription. It is used to help the model predict the current word based on the context of the words that came before it.</summary>
11		public readonly int PreviousWord;   // token_prev
12		/// <summary>Start of a sentence</summary>
13		public readonly int SentenceStart;   // token_solm
14		/// <summary>Represents the word "not" in the transcription</summary>
15		public readonly int Not;    // token_not
16		/// <summary>New transcription</summary>
17		public readonly int TranscriptionBegin;    // token_beg
18		/// <summary>token_translate</summary>
19		public readonly int TaskTranslate;
20		/// <summary>token_transcribe</summary>
21		public readonly int TaskTranscribe;
22	}
23}