mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 02:06:31 +03:00
Upd quickstart template
This commit is contained in:
parent
91d0fbb588
commit
ff8b980775
|
@ -171,8 +171,13 @@ factory = "tok2vec"
|
||||||
[components.tok2vec.model.embed]
|
[components.tok2vec.model.embed]
|
||||||
@architectures = "spacy.MultiHashEmbed.v1"
|
@architectures = "spacy.MultiHashEmbed.v1"
|
||||||
width = ${components.tok2vec.model.encode.width}
|
width = ${components.tok2vec.model.encode.width}
|
||||||
rows = {{ 2000 if optimize == "efficiency" else 7000 }}
|
{% if has_letters -%}
|
||||||
also_embed_subwords = {{ "true" if has_letters else "false" }}
|
attrs = ["NORM", "PREFIX", "SUFFIX", "SHAPE"]
|
||||||
|
rows = [5000, 2500, 2500, 2500]
|
||||||
|
{% else -%}
|
||||||
|
attrs = ["ORTH", "SHAPE"]
|
||||||
|
rows = [5000, 2500]
|
||||||
|
{% endif -%}
|
||||||
also_use_static_vectors = {{ "true" if optimize == "accuracy" else "false" }}
|
also_use_static_vectors = {{ "true" if optimize == "accuracy" else "false" }}
|
||||||
|
|
||||||
[components.tok2vec.model.encode]
|
[components.tok2vec.model.encode]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user