mirror of https://github.com/explosion/spaCy.git
Auto-format code with black (#9234)
Co-authored-by: explosion-bot <explosion-bot@users.noreply.github.com>
This commit is contained in:
parent
8bda39f088
commit
015d439eb6
|
@ -202,11 +202,13 @@ def test_set_pos():
|
||||||
doc[1].pos = VERB
|
doc[1].pos = VERB
|
||||||
assert doc[1].pos_ == "VERB"
|
assert doc[1].pos_ == "VERB"
|
||||||
|
|
||||||
|
|
||||||
def test_set_invalid_pos():
|
def test_set_invalid_pos():
|
||||||
doc = Doc(Vocab(), words=["hello", "world"])
|
doc = Doc(Vocab(), words=["hello", "world"])
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
doc[0].pos_ = "blah"
|
doc[0].pos_ = "blah"
|
||||||
|
|
||||||
|
|
||||||
def test_tokens_sent(doc):
|
def test_tokens_sent(doc):
|
||||||
"""Test token.sent property"""
|
"""Test token.sent property"""
|
||||||
assert len(list(doc.sents)) == 3
|
assert len(list(doc.sents)) == 3
|
||||||
|
|
|
@ -206,7 +206,9 @@ def wandb_logger(
|
||||||
for field in remove_config_values:
|
for field in remove_config_values:
|
||||||
del config_dot[field]
|
del config_dot[field]
|
||||||
config = util.dot_to_dict(config_dot)
|
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:
|
if run_name:
|
||||||
wandb.run.name = run_name
|
wandb.run.name = run_name
|
||||||
|
|
Loading…
Reference in New Issue