Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Escape all **kwargs correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
leezu committed Oct 14, 2019
1 parent 7de5de9 commit a9fbbf9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gluonnlp/vocab/vocab.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Vocab:
example, it is valid to only set the `unknown_token` index to 10
(instead of the default of 0) with `token_to_idx = {'<unk>': 10}`,
assuming that there are at least 10 tokens in the vocabulary.
``**kwargs``
`**kwargs`
Keyword arguments of the format `xxx_token` can be used to specify
further special tokens that will be exposed as attribute of the
vocabulary and associated with an index.
Expand All @@ -93,17 +93,17 @@ class Vocab:
The representation for the special token of padding token. Default:
'<pad>'. Specifying padding_token as positional argument is deprecated
and support will be removed. Specify it as keyword argument instead
(see documentation of **kwargs above)
(see documentation of `**kwargs` above)
deprecated_bos_token
The representation for the special token of beginning-of-sequence
token. Default: '<bos>'. Specifying bos_token as positional argument is
deprecated and support will be removed. Specify it as keyword argument
instead (see documentation of **kwargs above)
instead (see documentation of `**kwargs` above)
deprecated_eos_token
The representation for the special token of end-of-sequence token.
Default: '<eos>'. Specifying eos_token as positional argument is
deprecated and support will be removed. Specify it as keyword argument
instead (see documentation of **kwargs above)
instead (see documentation of `**kwargs` above)
Attributes
----------
Expand Down

0 comments on commit a9fbbf9

Please sign in to comment.