mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	Fix spans -> span for displacy style
This commit is contained in:
		
							parent
							
								
									b3c77e3e43
								
							
						
					
					
						commit
						bfd9701cef
					
				| 
						 | 
					@ -200,7 +200,7 @@ def render_parses(
 | 
				
			||||||
            file_.write(html)
 | 
					            file_.write(html)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if spans:
 | 
					    if spans:
 | 
				
			||||||
        html = displacy.render(docs[:limit], style="spans", page=True)
 | 
					        html = displacy.render(docs[:limit], style="span", page=True)
 | 
				
			||||||
        with (output_path / "spans.html").open("w", encoding="utf8") as file_:
 | 
					        with (output_path / "spans.html").open("w", encoding="utf8") as file_:
 | 
				
			||||||
            file_.write(html)
 | 
					            file_.write(html)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user