mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Auto-format code with black (#10908)
Co-authored-by: explosion-bot <explosion-bot@users.noreply.github.com>
This commit is contained in:
parent
727ce6d1f5
commit
24aafdffad
|
@ -23,7 +23,7 @@ def build_nel_encoder(
|
||||||
((tok2vec >> list2ragged()) & build_span_maker())
|
((tok2vec >> list2ragged()) & build_span_maker())
|
||||||
>> extract_spans()
|
>> extract_spans()
|
||||||
>> reduce_mean()
|
>> reduce_mean()
|
||||||
>> residual(Maxout(nO=token_width, nI=token_width, nP=2, dropout=0.0)) # type: ignore
|
>> residual(Maxout(nO=token_width, nI=token_width, nP=2, dropout=0.0)) # type: ignore
|
||||||
>> output_layer
|
>> output_layer
|
||||||
)
|
)
|
||||||
model.set_ref("output_layer", output_layer)
|
model.set_ref("output_layer", output_layer)
|
||||||
|
|
|
@ -491,7 +491,6 @@ def test_entity_ruler_remove_nonexisting_pattern(nlp, entity_ruler_factory):
|
||||||
ruler.remove_by_id("nepattern")
|
ruler.remove_by_id("nepattern")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("entity_ruler_factory", ENTITY_RULERS)
|
@pytest.mark.parametrize("entity_ruler_factory", ENTITY_RULERS)
|
||||||
def test_entity_ruler_remove_several_patterns(nlp, entity_ruler_factory):
|
def test_entity_ruler_remove_several_patterns(nlp, entity_ruler_factory):
|
||||||
ruler = nlp.add_pipe(entity_ruler_factory, name="entity_ruler")
|
ruler = nlp.add_pipe(entity_ruler_factory, name="entity_ruler")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user