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 d72c46a commit 9dde7ceCopy full SHA for 9dde7ce
paddlenlp/data/vocab.py
@@ -173,7 +173,7 @@ def to_tokens(self, indices):
173
174
Args:
175
indices (int|list[int]|tuple[int]|numpy.ndarray): The input indice(s) for mapping.
176
- Must be an `int` or 1D `list[int]`|`tuple[int]`|`numpy.ndarray`.
+ Must be an `int` or 1D `list[int]`|`tuple[int]`|`numpy.ndarray`.
177
178
Returns:
179
str|list[str]: Obtained token(s). If `indices` is an integer, it
0 commit comments