Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
combo
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Syntactic Tools
combo
Commits
ea870679
Commit
ea870679
authored
4 years ago
by
Mateusz Klimaszewski
Browse files
Options
Downloads
Patches
Plain Diff
Add TODO note for next AllenNLP update.
parent
2a413006
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!4
Documentation
,
!3
Herbert configuration and AllenNLP 1.2.0 update.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
combo/data/token_indexers/pretrained_transformer_mismatched_indexer.py
+2
-1
2 additions, 1 deletion
...ken_indexers/pretrained_transformer_mismatched_indexer.py
with
2 additions
and
1 deletion
combo/data/token_indexers/pretrained_transformer_mismatched_indexer.py
+
2
−
1
View file @
ea870679
...
...
@@ -6,10 +6,11 @@ from allennlp.data import token_indexers, tokenizers
@data.TokenIndexer.register
(
"
pretrained_transformer_mismatched_fixed
"
)
class
PretrainedTransformerMismatchedIndexer
(
token_indexers
.
PretrainedTransformerMismatchedIndexer
):
"""
TODO(mklimasz) Remove during next allennlp update, fixed on allennlp master.
"""
def
__init__
(
self
,
model_name
:
str
,
namespace
:
str
=
"
tags
"
,
max_length
:
int
=
None
,
tokenizer_kwargs
:
Optional
[
Dict
[
str
,
Any
]]
=
None
,
**
kwargs
)
->
None
:
# The matched version v.s. mismatched
ńskie
# The matched version v.s. mismatched
super
().
__init__
(
model_name
,
namespace
,
max_length
,
tokenizer_kwargs
,
**
kwargs
)
self
.
_matched_indexer
=
PretrainedTransformerIndexer
(
model_name
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment