BasicPositionalEncoderDecoder2023

Positional Encoder Decoder (VB.NET)

The Positional Encoder Decoder is a Visual Basic .NET class that provides functionality for encoding and decoding tokens and sentences using positional embeddings. It allows you to convert between string tokens and their corresponding embeddings, and vice versa.

Features

Usage

  1. Create an instance of the PositionalEncoderDecoder class by providing the necessary parameters: Dmodel (embedding model size), MaxSeqLength (maximum sentence length), and vocabulary (a list of known vocabulary).
Dim encoderDecoder As New PositionalEncoderDecoder(Dmodel, MaxSeqLength, vocabulary)
  1. Encoding:
  1. Decoding:

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! Please feel free to open an issue or submit a pull request.

About

This PositionalEncoderDecoder class was developed as part of a project to enable token and sentence encoding/decoding using positional embeddings.

Credits

The PositionalEncoderDecoder class is developed by [LEroySamuelDyer@hotmail.co.uk].