mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	Move test for #54 to regression tests
This commit is contained in:
		
							parent
							
								
									3f3a46722c
								
							
						
					
					
						commit
						359f73a96b
					
				
							
								
								
									
										10
									
								
								spacy/tests/regression/test_issue54.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								spacy/tests/regression/test_issue54.py
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,10 @@
 | 
				
			||||||
 | 
					# coding: utf-8
 | 
				
			||||||
 | 
					from __future__ import unicode_literals
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import pytest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@pytest.mark.models
 | 
				
			||||||
 | 
					def test_issue54(EN):
 | 
				
			||||||
 | 
					    text = u'Talks given by women had a slightly higher number of questions asked (3.2$\pm$0.2) than talks given by men (2.6$\pm$0.1).'
 | 
				
			||||||
 | 
					    tokens = EN(text)
 | 
				
			||||||
| 
						 | 
					@ -31,11 +31,6 @@ def test_merge_heads(EN):
 | 
				
			||||||
    assert tokens[5].head.i == 4
 | 
					    assert tokens[5].head.i == 4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@pytest.mark.models
 | 
					 | 
				
			||||||
def test_issue_54(EN):
 | 
					 | 
				
			||||||
    text = u'Talks given by women had a slightly higher number of questions asked (3.2$\pm$0.2) than talks given by men (2.6$\pm$0.1).'
 | 
					 | 
				
			||||||
    tokens = EN(text)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
@pytest.mark.models
 | 
					@pytest.mark.models
 | 
				
			||||||
def test_np_merges(EN):
 | 
					def test_np_merges(EN):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user