-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added transformers_config for passing arguments to the transformer (#268
) * added transformers config * changed def config to include new transformers config * fixed quotationmarks in config * removed wierd symbol * added attention in data classes * fixed keyerror * ibid * added pass of config to forward * ibid * fix for init * fixed tensors in forward * removed default for attention and added to_doc fix for attn * reformatted to black (accidentally reformatted via. autopep8) * added def to transformerdata * bugfixes - don't get why this does not use the default argument here though * removed default trfconfig from trfmodel * updated dummy transformer * fixed tests * added Tok2VecTransformer.v2 * changed typing * fixed type hint * fixed name of transformer_tok2vec_v2, added def * fixed default config to match name change * remove ds * renamed transformers_config Co-authored-by: KennethEnevoldsen <[email protected]>
- Loading branch information
1 parent
21e80a6
commit 01b67ef
Showing
7 changed files
with
99 additions
and
24 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
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
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