dinopy.auxiliary module¶
This module contains helpful functions for testing.
A q-gram generator, that creates all qgrams of a given length in a specified dtype.
- dinopy.auxiliary.qgram_generator(int size, type dtype=basenumbers)¶
Create an iterator over all different qgrams of the given size.
- Parameters:
size (int) – Length of the q-grams that will be created.
dtype (type) – Type of the created q-grams. (see: Note about dtype)
- Yields:
dtype – All q-grams of the given length (size).
- Raises:
InvalidDtypeError – If an unsupported dtype has been passed.