mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-01 00:17:44 +03:00 
			
		
		
		
	Fix nonproj label filter
This commit is contained in:
		
							parent
							
								
									97164b1763
								
							
						
					
					
						commit
						eff4ae809a
					
				|  | @ -95,8 +95,8 @@ def preprocess_training_data(gold_tuples, label_freq_cutoff=30): | |||
|             prepro_sents.append( | ||||
|                 ((ids, words, tags, proj_heads, deco_labels, iob), ctnts)) | ||||
|         preprocessed.append((raw_text, prepro_sents)) | ||||
|     #if label_freq_cutoff > 0: | ||||
|     #    return _filter_labels(preprocessed, label_freq_cutoff, freqs) | ||||
|     if label_freq_cutoff > 0: | ||||
|         return _filter_labels(preprocessed, label_freq_cutoff, freqs) | ||||
|     return preprocessed | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user