Skip to content

Commit 44557dc

Browse files
committed
Docstring for some params
1 parent 0af7b2c commit 44557dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/datasets/arrow_dataset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,8 @@ def from_generator(
952952
Args:
953953
generator (:obj:`Callable`): A callable object that returns an object that supports the `iter()` protocol.
954954
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.
955957
gen_kwargs(:obj:`dict`, optional): Keyword arguments to be passed to the `generator` callable.
956958
957959
Returns:

0 commit comments

Comments
 (0)