mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			236 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			236 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # coding: utf8
 | |
| from __future__ import unicode_literals
 | |
| 
 | |
| import pytest
 | |
| 
 | |
| 
 | |
| @pytest.mark.models('en')
 | |
| def test_beam_parse(EN):
 | |
|     doc = EN(u'Australia is a country', disable=['ner'])
 | |
|     ents = EN.entity(doc, beam_width=2)
 | |
|     print(ents)
 |