mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 18:07:26 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			244 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			244 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# coding: utf-8
 | 
						|
from __future__ import unicode_literals
 | 
						|
 | 
						|
from ...vocab import Vocab
 | 
						|
from ..util import get_doc
 | 
						|
 | 
						|
 | 
						|
def test_issue600():
 | 
						|
    vocab = Vocab(tag_map={'NN': {'pos': 'NOUN'}})
 | 
						|
    doc = get_doc(vocab, ["hello"])
 | 
						|
    doc[0].tag_ = 'NN'
 |