mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 07:57:35 +03:00 
			
		
		
		
	Don't use is_sentenced
This commit is contained in:
		
							parent
							
								
									67d9ebc922
								
							
						
					
					
						commit
						7efbc721a1
					
				|  | @ -111,7 +111,7 @@ def get_predicted_clusters( | |||
| 
 | ||||
| def get_sentence_map(doc: Doc): | ||||
|     """For the given span, return a list of sentence indexes.""" | ||||
|     if doc.is_sentenced: | ||||
|     if doc.has_annotation("SENT_START"): | ||||
|         si = 0 | ||||
|         out = [] | ||||
|         for sent in doc.sents: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user