Unverified Commit 16da8771 authored by Evan Pete Walsh's avatar Evan Pete Walsh Committed by GitHub
Browse files

fix 'encode_plus' docstring for 'special_tokens_mask' (0s and 1s were reversed) (#7949)

* fix docstring for 'special_tokens_mask'

* revert auto formatter changes

* revert another auto format

* revert another auto format
parent 52decab3
...@@ -1191,7 +1191,7 @@ ENCODE_PLUS_ADDITIONAL_KWARGS_DOCSTRING = r""" ...@@ -1191,7 +1191,7 @@ ENCODE_PLUS_ADDITIONAL_KWARGS_DOCSTRING = r"""
:obj:`return_overflowing_tokens=True`). :obj:`return_overflowing_tokens=True`).
- **num_truncated_tokens** -- Number of tokens truncated (when a :obj:`max_length` is specified and - **num_truncated_tokens** -- Number of tokens truncated (when a :obj:`max_length` is specified and
:obj:`return_overflowing_tokens=True`). :obj:`return_overflowing_tokens=True`).
- **special_tokens_mask** -- List of 0s and 1s, with 0 specifying added special tokens and 1 specifying - **special_tokens_mask** -- List of 0s and 1s, with 1 specifying added special tokens and 0 specifying
regular sequence tokens (when :obj:`add_special_tokens=True` and :obj:`return_special_tokens_mask=True`). regular sequence tokens (when :obj:`add_special_tokens=True` and :obj:`return_special_tokens_mask=True`).
- **length** -- The length of the inputs (when :obj:`return_length=True`) - **length** -- The length of the inputs (when :obj:`return_length=True`)
""" """
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment