mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	* Add __len__ function to StringStore
This commit is contained in:
		
							parent
							
								
									46fb24e9fd
								
							
						
					
					
						commit
						cc579ed429
					
				|  | @ -61,6 +61,9 @@ cdef class StringStore: | |||
|         def __get__(self): | ||||
|             return self.size-1 | ||||
| 
 | ||||
|     def __len__(self): | ||||
|         return self.size | ||||
| 
 | ||||
|     def __getitem__(self, object string_or_id): | ||||
|         cdef bytes byte_string | ||||
|         cdef const Utf8Str* utf8str | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user