diff --git a/website/src/templates/models.js b/website/src/templates/models.js
index 0b39d7864..ab378e568 100644
--- a/website/src/templates/models.js
+++ b/website/src/templates/models.js
@@ -123,7 +123,7 @@ function formatVectors(data) {
}
function formatAccuracy(data, lang) {
- const exclude = (lang !== "ja") ? ['speed'] : ['speed', 'morph_acc']
+ const exclude = lang !== 'ja' ? ['speed'] : ['speed', 'morph_acc']
if (!data) return []
return Object.keys(data)
.map(label => {
@@ -140,10 +140,14 @@ function formatAccuracy(data, lang) {
}
function formatDownloadLink(lang, name, version) {
- const fullName = `${lang}_${name}-${version}`
- const filename = `${fullName}-py3-none-any.whl`
- const url = `https://github.com/explosion/spacy-models/releases/download/${fullName}/${filename}`
- return {filename}
+ const fullName = `${lang}_${name}-${version}`
+ const filename = `${fullName}-py3-none-any.whl`
+ const url = `https://github.com/explosion/spacy-models/releases/download/${fullName}/${filename}`
+ return (
+
+ {filename}
+
+ )
}
function formatModelMeta(data) {
@@ -210,7 +214,8 @@ const Model = ({
const [isError, setIsError] = useState(true)
const [meta, setMeta] = useState({})
const { type, genre, size } = getModelComponents(name)
- const display_type = type === 'core' && (size === 'sm' || size === 'trf') ? 'core_no_vectors' : type
+ const display_type =
+ type === 'core' && (size === 'sm' || size === 'trf') ? 'core_no_vectors' : type
const version = useMemo(() => getLatestVersion(name, compatibility, prereleases), [
name,
compatibility,
diff --git a/website/src/templates/universe.js b/website/src/templates/universe.js
index 48ffa3add..b99e182c0 100644
--- a/website/src/templates/universe.js
+++ b/website/src/templates/universe.js
@@ -142,7 +142,13 @@ const UniverseContent = ({ content = [], categories, theme, pageContext, mdxComp
The Universe database is open-source and collected in a simple JSON file.
For more details on the formats and available fields, see the documentation.
Looking for inspiration your own spaCy plugin or extension? Check out the
-
+
project idea
section in Discussions.
diff --git a/website/src/widgets/quickstart-install.js b/website/src/widgets/quickstart-install.js
index 28dd14ecc..ce265e798 100644
--- a/website/src/widgets/quickstart-install.js
+++ b/website/src/widgets/quickstart-install.js
@@ -43,7 +43,7 @@ const QuickstartInstall = ({ id, title }) => {
const modelExtras = train ? selectedModels.filter(m => LANG_EXTRAS.includes(m)) : []
const apple = os === 'mac' && platform === 'arm'
const pipExtras = [
- (hardware === 'gpu' && (platform !== 'arm' || os === 'linux')) && cuda,
+ hardware === 'gpu' && (platform !== 'arm' || os === 'linux') && cuda,
train && 'transformers',
train && 'lookups',
apple && 'apple',
@@ -220,7 +220,8 @@ const QuickstartInstall = ({ id, title }) => {
cd spaCy
pip install -r requirements.txt
- pip install --no-build-isolation --editable {train || hardware == 'gpu' ? `'.[${pipExtras}]'` : '.'}
+ pip install --no-build-isolation --editable{' '}
+ {train || hardware == 'gpu' ? `'.[${pipExtras}]'` : '.'}
# packages only available via pip
diff --git a/website/src/widgets/quickstart-training.js b/website/src/widgets/quickstart-training.js
index fbeeaf79d..f6ec4633b 100644
--- a/website/src/widgets/quickstart-training.js
+++ b/website/src/widgets/quickstart-training.js
@@ -10,7 +10,15 @@ const DEFAULT_LANG = 'en'
const DEFAULT_HARDWARE = 'cpu'
const DEFAULT_OPT = 'efficiency'
const DEFAULT_TEXTCAT_EXCLUSIVE = true
-const COMPONENTS = ['tagger', 'morphologizer', 'trainable_lemmatizer', 'parser', 'ner', 'spancat', 'textcat']
+const COMPONENTS = [
+ 'tagger',
+ 'morphologizer',
+ 'trainable_lemmatizer',
+ 'parser',
+ 'ner',
+ 'spancat',
+ 'textcat',
+]
const COMMENT = `# This is an auto-generated partial config. To use it with 'spacy train'
# you can run spacy init fill-config to auto-fill all default settings:
# python -m spacy init fill-config ./base_config.cfg ./config.cfg`