mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	Fix indentation error and set Doc.is_tagged correctly
This commit is contained in:
		
							parent
							
								
									0e847d7fe5
								
							
						
					
					
						commit
						5ecb274764
					
				|  | @ -470,7 +470,7 @@ class Tagger(Pipe): | ||||||
|                     doc.extend_tensor(tensors[i].get()) |                     doc.extend_tensor(tensors[i].get()) | ||||||
|                 else: |                 else: | ||||||
|                     doc.extend_tensor(tensors[i]) |                     doc.extend_tensor(tensors[i]) | ||||||
|         doc.is_tagged = True |             doc.is_tagged = True | ||||||
| 
 | 
 | ||||||
|     def update(self, docs, golds, drop=0., sgd=None, losses=None): |     def update(self, docs, golds, drop=0., sgd=None, losses=None): | ||||||
|         if losses is not None and self.name not in losses: |         if losses is not None and self.name not in losses: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user