We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Having a base-class for tokenizers could be useful. It would be like this:
class TokenizerBase: def __call__(self, data: Data) -> Dict: raise NotImplementedError
All tokenizers will inherit this. It only defines an interface for tokenizers and would help the LSP understand the code better.
The text was updated successfully, but these errors were encountered:
If we're at it, we could also define a base-class for transforms
class TransformBase: def __call__(self, data: Data) -> Data: raise NotImplementedError
Sorry, something went wrong.
We could also just define types like
TokenizerType = Callable[[Data], Dict] TransformType = Callable[[Data], Data]
No branches or pull requests
Having a base-class for tokenizers could be useful. It would be like this:
All tokenizers will inherit this. It only defines an interface for tokenizers and would help the LSP understand the code better.
The text was updated successfully, but these errors were encountered: