add pooling to NEL's TransformerListener

This commit is contained in:
svlandeg 2020-09-23 09:24:28 +02:00
parent 085a1c8e2b
commit 556f3e4652

View File

@ -107,6 +107,9 @@ nO = null
[components.entity_linker.model.tok2vec]
@architectures = "spacy-transformers.TransformerListener.v1"
grad_factor = 1.0
[components.entity_linker.model.tok2vec.pooling]
@layers = "reduce_mean.v1"
{% endif -%}
{% if "textcat" in components %}