mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-04 20:30:24 +03:00
Break up longer expression
This commit is contained in:
parent
ac3433099d
commit
7cef53a80e
|
@ -26,7 +26,8 @@ lang = "{{ lang }}"
|
|||
{%- set with_accuracy = optimize == "accuracy" -%}
|
||||
{# The BOW textcat doesn't need a source of features, so it can omit the
|
||||
tok2vec/transformer. #}
|
||||
{%- set textcat_needs_features = has_textcat and (with_accuracy or use_transformer) -%}
|
||||
{%- set with_accuracy_or_transformer = (use_transformer or with_accuracy) -%}
|
||||
{%- set textcat_needs_features = has_textcat and with_accuracy_or_transformer -%}
|
||||
{%- if ("tagger" in components or "morphologizer" in components or "parser" in components or "ner" in components or "spancat" in components or "trainable_lemmatizer" in components or "entity_linker" in components or textcat_needs_features) -%}
|
||||
{%- set full_pipeline = ["transformer" if use_transformer else "tok2vec"] + components -%}
|
||||
{%- else -%}
|
||||
|
|
Loading…
Reference in New Issue
Block a user