mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	remove unncessary fmt:off instructions
This commit is contained in:
		
							parent
							
								
									84e7d05a0b
								
							
						
					
					
						commit
						2f88c4ef09
					
				| 
						 | 
					@ -279,7 +279,6 @@ TRAIN_EXAMPLE_2 = dict(
 | 
				
			||||||
@pytest.mark.slow
 | 
					@pytest.mark.slow
 | 
				
			||||||
@pytest.mark.parametrize(
 | 
					@pytest.mark.parametrize(
 | 
				
			||||||
    "component,examples",
 | 
					    "component,examples",
 | 
				
			||||||
    # fmt: off
 | 
					 | 
				
			||||||
    [
 | 
					    [
 | 
				
			||||||
        ("tagger", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2]),
 | 
					        ("tagger", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2]),
 | 
				
			||||||
        ("morphologizer", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2]),
 | 
					        ("morphologizer", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2]),
 | 
				
			||||||
| 
						 | 
					@ -288,8 +287,7 @@ TRAIN_EXAMPLE_2 = dict(
 | 
				
			||||||
        ("ner", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2]),
 | 
					        ("ner", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2]),
 | 
				
			||||||
        ("spancat", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2]),
 | 
					        ("spancat", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2]),
 | 
				
			||||||
        ("textcat", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2]),
 | 
					        ("textcat", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2]),
 | 
				
			||||||
    ]
 | 
					    ],
 | 
				
			||||||
    # fmt: on
 | 
					 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
def test_init_config_trainable(component, examples, en_vocab):
 | 
					def test_init_config_trainable(component, examples, en_vocab):
 | 
				
			||||||
    if component == "textcat":
 | 
					    if component == "textcat":
 | 
				
			||||||
| 
						 | 
					@ -352,9 +350,7 @@ def test_init_config_trainable(component, examples, en_vocab):
 | 
				
			||||||
@pytest.mark.slow
 | 
					@pytest.mark.slow
 | 
				
			||||||
@pytest.mark.parametrize(
 | 
					@pytest.mark.parametrize(
 | 
				
			||||||
    "component,examples",
 | 
					    "component,examples",
 | 
				
			||||||
    # fmt: off
 | 
					    [("tagger,parser,morphologizer", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2] * 15)],
 | 
				
			||||||
    [("tagger,parser,morphologizer", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2] * 15)]
 | 
					 | 
				
			||||||
    # fmt: on
 | 
					 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
def test_init_config_trainable_multiple(component, examples, en_vocab):
 | 
					def test_init_config_trainable_multiple(component, examples, en_vocab):
 | 
				
			||||||
    train_docs = []
 | 
					    train_docs = []
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user