mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 07:57:35 +03:00 
			
		
		
		
	black
This commit is contained in:
		
							parent
							
								
									e5b2a8b506
								
							
						
					
					
						commit
						11a17976ec
					
				|  | @ -64,7 +64,9 @@ def test_loss_alignment_example(tokens_predicted, tokens_reference, reference_tr | |||
|     span_finder = nlp.add_pipe("span_finder", config={"training_key": TRAINING_KEY}) | ||||
|     nlp.initialize() | ||||
|     if predicted.text != reference.text: | ||||
|         with pytest.raises(ValueError, match="must match between reference and predicted"): | ||||
|         with pytest.raises( | ||||
|             ValueError, match="must match between reference and predicted" | ||||
|         ): | ||||
|             span_finder._get_aligned_truth_scores([example]) | ||||
|         return | ||||
|     truth_scores = span_finder._get_aligned_truth_scores([example]) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user