mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-24 19:11:58 +03:00
Put back initializers in spancat config
Whenever I remove model.scorer.init_w and model.scorer.init_b, I encounter an error in the test: SystemError: <method '__getitem__' of 'dict' objects> returned a result with an error set. My Thinc version is 8.1.5, but I can't seem to check what's causing the error.
This commit is contained in:
parent
4ab27d4517
commit
a1be07e2da
|
@ -18,6 +18,12 @@ spancat_excl_default_config = """
|
|||
@architectures = "spacy.SpanCategorizer.v1"
|
||||
scorer = {"@layers": "Softmax.v2"}
|
||||
|
||||
[model.scorer.init_W]
|
||||
@initializers = "zero_init.v1"
|
||||
|
||||
[model.scorer.init_b]
|
||||
@initializers = "zero_init.v1"
|
||||
|
||||
[model.reducer]
|
||||
@layers = spacy.mean_max_reducer.v1
|
||||
hidden_size = 128
|
||||
|
|
Loading…
Reference in New Issue
Block a user