From 8c4603c73675958efc960fbd4bb599a2909d106a Mon Sep 17 00:00:00 2001 From: Konstantin Date: Mon, 16 Jan 2023 14:52:43 +0100 Subject: Source codes --- WhisperNet/API/SpecialTokens.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 WhisperNet/API/SpecialTokens.cs (limited to 'WhisperNet/API/SpecialTokens.cs') diff --git a/WhisperNet/API/SpecialTokens.cs b/WhisperNet/API/SpecialTokens.cs new file mode 100644 index 0000000..d672369 --- /dev/null +++ b/WhisperNet/API/SpecialTokens.cs @@ -0,0 +1,23 @@ +namespace Whisper +{ + /// Special tokens defined in the model + public readonly struct SpecialTokens + { + /// The end of a transcription + public readonly int TranscriptionEnd; // token_eot + /// Start of a transcription + public readonly int TranscriptionStart; // token_sot + /// 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. + public readonly int PreviousWord; // token_prev + /// Start of a sentence + public readonly int SentenceStart; // token_solm + /// Represents the word "not" in the transcription + public readonly int Not; // token_not + /// New transcription + public readonly int TranscriptionBegin; // token_beg + /// token_translate + public readonly int TaskTranslate; + /// token_transcribe + public readonly int TaskTranscribe; + } +} \ No newline at end of file -- cgit v1.2.3