mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	Fix cytoolz import cytoolz
This commit is contained in:
		
							parent
							
								
									cabaadd793
								
							
						
					
					
						commit
						711f108532
					
				|  | @ -8,7 +8,7 @@ import cProfile | ||||||
| import pstats | import pstats | ||||||
| import sys | import sys | ||||||
| import tqdm | import tqdm | ||||||
| import cytoolz | import itertools | ||||||
| import thinc.extra.datasets | import thinc.extra.datasets | ||||||
| from wasabi import Printer | from wasabi import Printer | ||||||
| 
 | 
 | ||||||
|  | @ -40,7 +40,7 @@ def profile(model, inputs=None, n_texts=10000): | ||||||
|     with msg.loading("Loading model '{}'...".format(model)): |     with msg.loading("Loading model '{}'...".format(model)): | ||||||
|         nlp = load_model(model) |         nlp = load_model(model) | ||||||
|     msg.good("Loaded model '{}'".format(model)) |     msg.good("Loaded model '{}'".format(model)) | ||||||
|     texts = list(cytoolz.take(n_texts, inputs)) |     texts = list(itertools.islice(inputs, n_texts)) | ||||||
|     cProfile.runctx("parse_texts(nlp, texts)", globals(), locals(), "Profile.prof") |     cProfile.runctx("parse_texts(nlp, texts)", globals(), locals(), "Profile.prof") | ||||||
|     s = pstats.Stats("Profile.prof") |     s = pstats.Stats("Profile.prof") | ||||||
|     msg.divider("Profile stats") |     msg.divider("Profile stats") | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user