mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
replace "is not" with !=
This commit is contained in:
parent
61472e7cb3
commit
3c362ac520
|
@ -142,7 +142,7 @@ def create_pretraining_model(nlp, pretrain_config):
|
|||
# If the config referred to a Tok2VecListener, grab the original model instead
|
||||
if type(tok2vec).__name__ == "Tok2VecListener":
|
||||
original_tok2vec = (
|
||||
tok2vec.upstream_name if tok2vec.upstream_name is not "*" else "tok2vec"
|
||||
tok2vec.upstream_name if tok2vec.upstream_name != "*" else "tok2vec"
|
||||
)
|
||||
tok2vec = nlp.get_pipe(original_tok2vec).model
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue
Block a user