mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
add pooling to NEL's TransformerListener
This commit is contained in:
parent
085a1c8e2b
commit
556f3e4652
|
@ -107,6 +107,9 @@ nO = null
|
||||||
[components.entity_linker.model.tok2vec]
|
[components.entity_linker.model.tok2vec]
|
||||||
@architectures = "spacy-transformers.TransformerListener.v1"
|
@architectures = "spacy-transformers.TransformerListener.v1"
|
||||||
grad_factor = 1.0
|
grad_factor = 1.0
|
||||||
|
|
||||||
|
[components.entity_linker.model.tok2vec.pooling]
|
||||||
|
@layers = "reduce_mean.v1"
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
{% if "textcat" in components %}
|
{% if "textcat" in components %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user