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:
Lj Miranda 2022-11-29 11:32:38 +08:00
parent 4ab27d4517
commit a1be07e2da

View File

@ -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