Skip to content

Commit d32a1f7

Browse files
authored
DOC: remove mode parameter in docstring of pdf and video feature (#7848)
remove mode parameter in docstring of pdf and video feature
1 parent f2f58b3 commit d32a1f7

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

src/datasets/features/pdf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ class Pdf:
4444
- A `pdfplumber.pdf.PDF`: pdfplumber pdf object.
4545
4646
Args:
47-
mode (`str`, *optional*):
48-
The mode to convert the pdf to. If `None`, the native mode of the pdf is used.
4947
decode (`bool`, defaults to `True`):
5048
Whether to decode the pdf data. If `False`,
5149
returns the underlying dictionary in the format `{"path": pdf_path, "bytes": pdf_bytes}`.

src/datasets/features/video.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ class Video:
4545
Output: The Video features output data as `torchcodec.decoders.VideoDecoder` objects.
4646
4747
Args:
48-
mode (`str`, *optional*):
49-
The mode to convert the video to. If `None`, the native mode of the video is used.
5048
decode (`bool`, defaults to `True`):
5149
Whether to decode the video data. If `False`,
5250
returns the underlying dictionary in the format `{"path": video_path, "bytes": video_bytes}`.

0 commit comments

Comments
 (0)