mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	Remove redundant language loading integration tests
This commit is contained in:
		
							parent
							
								
									61f1ca09c2
								
							
						
					
					
						commit
						a3fd32455e
					
				| 
						 | 
					@ -1,21 +0,0 @@
 | 
				
			||||||
# encoding: utf8
 | 
					 | 
				
			||||||
from __future__ import unicode_literals
 | 
					 | 
				
			||||||
from ...fr import French
 | 
					 | 
				
			||||||
from ...nl import Dutch
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
def test_load_french():
 | 
					 | 
				
			||||||
    nlp = French()
 | 
					 | 
				
			||||||
    doc = nlp(u'Parlez-vous français?')
 | 
					 | 
				
			||||||
    assert doc[0].text == u'Parlez'
 | 
					 | 
				
			||||||
    assert doc[1].text == u'-'
 | 
					 | 
				
			||||||
    assert doc[2].text == u'vous'
 | 
					 | 
				
			||||||
    assert doc[3].text == u'français'
 | 
					 | 
				
			||||||
    assert doc[4].text == u'?'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
def test_load_dutch():
 | 
					 | 
				
			||||||
    nlp = Dutch()
 | 
					 | 
				
			||||||
    doc = nlp(u'Is dit Nederlands?')
 | 
					 | 
				
			||||||
    assert doc[0].text == u'Is'
 | 
					 | 
				
			||||||
    assert doc[1].text == u'dit'
 | 
					 | 
				
			||||||
    assert doc[2].text == u'Nederlands'
 | 
					 | 
				
			||||||
    assert doc[3].text == u'?'
 | 
					 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user