mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-30 23:47:31 +03:00 
			
		
		
		
	* Mark tests that require models
This commit is contained in:
		
							parent
							
								
									8e26a28616
								
							
						
					
					
						commit
						31da42eb27
					
				|  | @ -33,6 +33,8 @@ 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 | ||||
| def test_np_merges(EN): | ||||
|     text = u'displaCy is a parse tool built with Javascript' | ||||
|     tokens = EN(text) | ||||
|  | @ -57,6 +59,7 @@ def test_entity_merge(EN): | |||
|     # check looping is ok | ||||
|     assert(len(tokens) == 15) | ||||
| 
 | ||||
| 
 | ||||
| @pytest.mark.models | ||||
| def test_sentence_update_after_merge(EN): | ||||
|     tokens = EN(u'Stewart Lee is a stand up comedian. He lives in England and loves Joe Pasquale.') | ||||
|  | @ -70,6 +73,7 @@ def test_sentence_update_after_merge(EN): | |||
|     assert(len(sent1) == init_len - 1) | ||||
|     assert(len(sent2) == init_len2 - 1) | ||||
| 
 | ||||
| 
 | ||||
| @pytest.mark.models | ||||
| def test_subtree_size_check(EN): | ||||
|     tokens = EN(u'Stewart Lee is a stand up comedian who lives in England and loves Joe Pasquale') | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user