-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable caching in Field when numericalizer isn't deterministic (via deterministic arg) Make Specials a singleton string subclass Add static constructors (from_itos, from_stoi) Add UNK filtering Apply non-core specials in Field & add tests for this Fix previous tests, add new tests
- Loading branch information
Showing
11 changed files
with
679 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Special tokens | ||
=============== | ||
.. autoclass:: podium.vocab.Special | ||
:members: | ||
:no-undoc-members: | ||
|
||
The unknown token | ||
^^^^^^^^^^^^^^^^^^ | ||
.. autoclass:: podium.vocab.UNK | ||
:members: | ||
:no-undoc-members: | ||
|
||
The padding token | ||
^^^^^^^^^^^^^^^^^^ | ||
.. autoclass:: podium.vocab.PAD | ||
:members: | ||
:no-undoc-members: | ||
|
||
The beginning-of-sequence token | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
.. autoclass:: podium.vocab.BOS | ||
:members: | ||
:no-undoc-members: | ||
|
||
The end-of-sequence token | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
.. autoclass:: podium.vocab.EOS | ||
:members: | ||
:no-undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.