Skip to content
Discussion options

You must be logged in to vote

Hi @jamnicki ,

I think you need to do it this way:

...
[model]
@architectures = "spacy.SpanCategorizer.v1"
- scorer = {"@layers": "spacy.LinearLogistic.v1"}
+ scorer = {"@layers": "Softmax.v2"}
...

You can set it under the model group and put it inside the scorer parameter (notice how the @layers is enclosed like a dictionary). You might also need to set individual parameters for Softmax.v2:

[model.scorer.init_W]
@initializers = "zero_init.v1"

[model.scorer.init_b]
@initializers = "zero_init.v1"`

So overall, your config may look like this:

[model]
@architectures = "spacy.SpanCategorizer.v1"
scorer = {"@layers": "Softmax.v2"}

[model.scorer.init_W]
@initializers = "zero_init.v1"

[model.…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jamnicki
Comment options

@egumasa
Comment options

@egumasa
Comment options

Answer selected by jamnicki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / config Feature: Training config feat / spancat Feature: Span Categorizer
3 participants