:py:mod:`maha.datasets.templates.dataset` ========================================= .. py:module:: maha.datasets.templates.dataset Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: maha.datasets.templates.dataset.Dataset maha.datasets.templates.dataset.IterableDataset .. py:class:: Dataset(path, template, sep = '\t') Bases: :py:obj:`Generic`\ [\ :py:obj:`T`\ ] Base class for all datasets. :param path: Path to the dataset. :type path: Union[str, Path] :param template: Template class for the dataset. :type template: Type :param sep: Separator for the dataset. The default is " ". :type sep: str, optional .. py:method:: data(self) :property: .. py:class:: IterableDataset(path, template, sep = '\t') Bases: :py:obj:`Generic`\ [\ :py:obj:`T`\ ] Base class for all datasets that need to be streamed. :param path: Path to the dataset. :type path: Union[str, Path] :param template: Template class for the dataset. :type template: Type :param sep: Separator for the dataset. The default is " ". :type sep: str, optional