mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			260 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			260 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import pytest
 | 
						|
from ...vocab import Vocab
 | 
						|
from ...tokens import Doc
 | 
						|
from ...matcher import Matcher
 | 
						|
 | 
						|
 | 
						|
def test_issue588():
 | 
						|
    matcher = Matcher(Vocab())
 | 
						|
    with pytest.raises(ValueError):
 | 
						|
        matcher.add(entity_key='1', label='TEST', attrs={}, specs=[[]])
 |