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) => {
if (isString(child)) {
const icon = icons[child.trim()]
const props = {
inline: i < children.length,
'aria-hidden': undefined,
}
if (icon) {
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)) {
hasIcon = true
const [, iconName, text] = child.split(iconRe)
return (
<Fragment key={i}>
<Icon {...icons[iconName]} {...props} />
{text.trim()}
<Icon {...icons[iconName]} aria-hidden={undefined} />
{text}
</Fragment>
)
}

View File

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