We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0af7b2c commit 44557dcCopy full SHA for 44557dc
src/datasets/arrow_dataset.py
@@ -952,6 +952,8 @@ def from_generator(
952
Args:
953
generator (:obj:`Callable`): A callable object that returns an object that supports the `iter()` protocol.
954
features (:class:`Features`, optional): Dataset features.
955
+ cache_dir (:obj:`str`, optional, default ``"~/.cache/huggingface/datasets"``): Directory to cache data.
956
+ keep_in_memory (:obj:`bool`, default ``False``): Whether to copy the data in-memory.
957
gen_kwargs(:obj:`dict`, optional): Keyword arguments to be passed to the `generator` callable.
958
959
Returns:
0 commit comments