mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			510 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			510 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# coding: utf8
 | 
						||
from __future__ import unicode_literals
 | 
						||
 | 
						||
import pytest
 | 
						||
 | 
						||
 | 
						||
@pytest.mark.models
 | 
						||
def test_issue704(EN):
 | 
						||
    """Test that sentence boundaries are detected correctly."""
 | 
						||
 | 
						||
    text = '“Atticus said to Jem one day, “I’d rather you shot at tin cans in the backyard, but I know you’ll go after birds. Shoot all the blue jays you want, if you can hit ‘em, but remember it’s a sin to kill a mockingbird.”'
 | 
						||
    doc = EN(text)
 | 
						||
    sents = [sent for sent in doc.sents]
 | 
						||
    assert len(sents) == 3
 |