Update docs [ci skip]

This commit is contained in:
Ines Montani 2020-09-12 17:45:19 +02:00
parent 368ecf705a
commit 475a310b13
2 changed files with 25 additions and 21 deletions

View File

@ -102,20 +102,23 @@ export function replaceEmoji(cellChildren) {
children = children.map((child, i) => { children = children.map((child, i) => {
if (isString(child)) { if (isString(child)) {
const icon = icons[child.trim()] const icon = icons[child.trim()]
const props = {
inline: i < children.length,
'aria-hidden': undefined,
}
if (icon) { if (icon) {
hasIcon = true hasIcon = true
return <Icon {...icon} {...props} key={i} /> return (
<Icon
{...icon}
inline={i < children.length}
aria-hidden={undefined}
key={i}
/>
)
} else if (iconRe.test(child)) { } else if (iconRe.test(child)) {
hasIcon = true hasIcon = true
const [, iconName, text] = child.split(iconRe) const [, iconName, text] = child.split(iconRe)
return ( return (
<Fragment key={i}> <Fragment key={i}>
<Icon {...icons[iconName]} {...props} /> <Icon {...icons[iconName]} aria-hidden={undefined} />
{text.trim()} {text}
</Fragment> </Fragment>
) )
} }

View File

@ -113,47 +113,48 @@ const Landing = ({ data }) => {
<H2>Features</H2> <H2>Features</H2>
<Ul> <Ul>
<Li> <Li>
Support for <strong>{counts.langs}+ languages</strong> Support for <strong>{counts.langs}+ languages</strong>
</Li> </Li>
<Li> <Li>
<strong>{counts.models} trained pipelines</strong> for{' '} <strong>{counts.models} trained pipelines</strong> for{' '}
{counts.modelLangs} languages {counts.modelLangs} languages
</Li> </Li>
<Li> <Li>
Multi-task learning with pretrained <strong>transformers</strong> like Multi-task learning with pretrained <strong>transformers</strong>{' '}
BERT like BERT
</Li> </Li>
<Li> <Li>
Pretrained <strong>word vectors</strong> Pretrained <strong>word vectors</strong>
</Li> </Li>
<Li>State-of-the-art speed</Li> <Li> State-of-the-art speed</Li>
<Li> <Li>
Production-ready <strong>training system</strong> Production-ready <strong>training system</strong>
</Li> </Li>
<Li> <Li>
Linguistically-motivated <strong>tokenization</strong> Linguistically-motivated <strong>tokenization</strong>
</Li> </Li>
<Li> <Li>
Components for <strong>named entity</strong> recognition, Components for <strong>named entity</strong> recognition,
part-of-speech-tagging, dependency parsing, sentence segmentation,{' '} part-of-speech-tagging, dependency parsing, sentence segmentation,{' '}
<strong>text classification</strong>, lemmatization, morphological <strong>text classification</strong>, lemmatization, morphological
analysis, entity linking and more analysis, entity linking and more
</Li> </Li>
<Li> <Li>
Easily extensible with <strong>custom components</strong> and attributes Easily extensible with <strong>custom components</strong> and
attributes
</Li> </Li>
<Li> <Li>
Support for custom models in <strong>PyTorch</strong>,{' '} Support for custom models in <strong>PyTorch</strong>,{' '}
<strong>TensorFlow</strong> and other frameworks <strong>TensorFlow</strong> and other frameworks
</Li> </Li>
<Li> <Li>
Built in <strong>visualizers</strong> for syntax and NER Built in <strong>visualizers</strong> for syntax and NER
</Li> </Li>
<Li> <Li>
Easy <strong>model packaging</strong>, deployment and workflow Easy <strong>model packaging</strong>, deployment and workflow
management management
</Li> </Li>
<Li>Robust, rigorously evaluated accuracy</Li> <Li> Robust, rigorously evaluated accuracy</Li>
</Ul> </Ul>
</LandingCol> </LandingCol>
</LandingGrid> </LandingGrid>