Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account for padding/gap elements in input sequences #25

Open
RMichae1 opened this issue May 7, 2024 · 0 comments
Open

Account for padding/gap elements in input sequences #25

RMichae1 opened this issue May 7, 2024 · 0 comments

Comments

@RMichae1
Copy link
Collaborator

RMichae1 commented May 7, 2024

Currently it is the case that either the problem alphabet is required to have the required 'gap', '""' , etc. for encoding the sequence to an integer array correctly.

However some sequences may contain elements not listed in the alphabet and we require a fallback integer label.

I recommend using alphabet + 1 indices where zero is reserved as fallback.

This way sampling the alphabet will not yield broken sequences, as it is still restricted to the valid alphabet elements, however strings with padding can be encoded to valid integers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant