mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 07:57:35 +03:00 
			
		
		
		
	Update models.js [ci skip]
This commit is contained in:
		
							parent
							
								
									9cbaf9b965
								
							
						
					
					
						commit
						71bd040834
					
				|  | @ -239,7 +239,7 @@ const Model = ({ name, langId, langName, baseUrl, repo, compatibility, hasExampl | |||
|                     )} | ||||
|                 </tbody> | ||||
|             </Table> | ||||
|             <Grid cols={2} gutterBottom={hasInteractiveCode || labels}> | ||||
|             <Grid cols={2} gutterBottom={hasInteractiveCode || !!labels}> | ||||
|                 {accuracy && | ||||
|                     accuracy.map(({ label, items }, i) => | ||||
|                         !items ? null : ( | ||||
|  | @ -293,29 +293,31 @@ const Model = ({ name, langId, langName, baseUrl, repo, compatibility, hasExampl | |||
|                         . | ||||
|                     </p> | ||||
|                     <Table fixed> | ||||
|                         {Object.keys(labels).map(pipe => { | ||||
|                             const labelNames = labels[pipe] || [] | ||||
|                             const help = LABEL_SCHEME_META[pipe] | ||||
|                             return ( | ||||
|                                 <Tr key={pipe} evenodd={false}> | ||||
|                                     <Td style={{ width: '20%' }}> | ||||
|                                         <Label> | ||||
|                                             {pipe} {help && <Help>{help}</Help>} | ||||
|                                         </Label> | ||||
|                                     </Td> | ||||
|                                     <Td> | ||||
|                                         {labelNames.map((label, i) => ( | ||||
|                                             <> | ||||
|                                                 {i > 0 && ', '} | ||||
|                                                 <InlineCode wrap key={label}> | ||||
|                                                     {label} | ||||
|                                                 </InlineCode> | ||||
|                                             </> | ||||
|                                         ))} | ||||
|                                     </Td> | ||||
|                                 </Tr> | ||||
|                             ) | ||||
|                         })} | ||||
|                         <tbody> | ||||
|                             {Object.keys(labels).map(pipe => { | ||||
|                                 const labelNames = labels[pipe] || [] | ||||
|                                 const help = LABEL_SCHEME_META[pipe] | ||||
|                                 return ( | ||||
|                                     <Tr key={pipe} evenodd={false} key={pipe}> | ||||
|                                         <Td style={{ width: '20%' }}> | ||||
|                                             <Label> | ||||
|                                                 {pipe} {help && <Help>{help}</Help>} | ||||
|                                             </Label> | ||||
|                                         </Td> | ||||
|                                         <Td> | ||||
|                                             {labelNames.map((label, i) => ( | ||||
|                                                 <> | ||||
|                                                     {i > 0 && ', '} | ||||
|                                                     <InlineCode wrap key={label}> | ||||
|                                                         {label} | ||||
|                                                     </InlineCode> | ||||
|                                                 </> | ||||
|                                             ))} | ||||
|                                         </Td> | ||||
|                                     </Tr> | ||||
|                                 ) | ||||
|                             })} | ||||
|                         </tbody> | ||||
|                     </Table> | ||||
|                 </Accordion> | ||||
|             )} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user