mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 05:37:03 +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