diff --git a/spacy/tests/doc/test_token_api.py b/spacy/tests/doc/test_token_api.py index 38178cd00..e715c5e85 100644 --- a/spacy/tests/doc/test_token_api.py +++ b/spacy/tests/doc/test_token_api.py @@ -202,11 +202,13 @@ def test_set_pos(): doc[1].pos = VERB assert doc[1].pos_ == "VERB" + def test_set_invalid_pos(): doc = Doc(Vocab(), words=["hello", "world"]) with pytest.raises(ValueError): doc[0].pos_ = "blah" + def test_tokens_sent(doc): """Test token.sent property""" assert len(list(doc.sents)) == 3 diff --git a/spacy/training/loggers.py b/spacy/training/loggers.py index 524b422a5..137e89e56 100644 --- a/spacy/training/loggers.py +++ b/spacy/training/loggers.py @@ -206,7 +206,9 @@ def wandb_logger( for field in remove_config_values: del config_dot[field] config = util.dot_to_dict(config_dot) - run = wandb.init(project=project_name, config=config, entity=entity, reinit=True) + run = wandb.init( + project=project_name, config=config, entity=entity, reinit=True + ) if run_name: wandb.run.name = run_name