+
diff --git a/docs/_templates/footer-links/legal-notice.html b/docs/_templates/footer-links/legal-notice.html
new file mode 100644
index 0000000000..ab3b0dd4ac
--- /dev/null
+++ b/docs/_templates/footer-links/legal-notice.html
@@ -0,0 +1 @@
+Legal notice
\ No newline at end of file
diff --git a/docs/_templates/footer-links/linkedin.html b/docs/_templates/footer-links/linkedin.html
new file mode 100644
index 0000000000..f6f83d745d
--- /dev/null
+++ b/docs/_templates/footer-links/linkedin.html
@@ -0,0 +1 @@
+LinkedIn
\ No newline at end of file
diff --git a/docs/_templates/footer-links/x.html b/docs/_templates/footer-links/x.html
new file mode 100644
index 0000000000..c9976cdddf
--- /dev/null
+++ b/docs/_templates/footer-links/x.html
@@ -0,0 +1 @@
+Twitter/X
\ No newline at end of file
diff --git a/docs/_templates/landing-page-banner.html b/docs/_templates/landing-page-banner.html
new file mode 100644
index 0000000000..8130a83d52
--- /dev/null
+++ b/docs/_templates/landing-page-banner.html
@@ -0,0 +1,353 @@
+
+
+
+
+ A very simple framework for state-of-the-art natural language processing.
+ Get started
+
\ No newline at end of file
diff --git a/docs/_templates/landing-page-illustrations.html b/docs/_templates/landing-page-illustrations.html
new file mode 100644
index 0000000000..b6b55230a5
--- /dev/null
+++ b/docs/_templates/landing-page-illustrations.html
@@ -0,0 +1,30 @@
+
+
+
+
+ Easy to Use
+
+ State-of-the-art NLP with just a few lines of code! Find entities, detect sentiment, and more.
+ Check out our demo!
+
+
+
+
+
+ Huge Community
+
+ With a community of ~200 contributors, Flair is used in hundreds of companies,
+ over 2,000 open source projects, and
+ 2,000+ papers!
+
+
+
+
+
+ Open Source and Free
+
+ Flair is completely free and open source, making it accessible for everyone to use
+ and report issues.
+
+
+
\ No newline at end of file
diff --git a/docs/_templates/landing_page_styles.html b/docs/_templates/landing_page_styles.html
new file mode 100644
index 0000000000..d98569463a
--- /dev/null
+++ b/docs/_templates/landing_page_styles.html
@@ -0,0 +1,339 @@
+
diff --git a/docs/_templates/legal-notice-content.html b/docs/_templates/legal-notice-content.html
new file mode 100644
index 0000000000..15a5a0ac8a
--- /dev/null
+++ b/docs/_templates/legal-notice-content.html
@@ -0,0 +1,35 @@
+
+
+ Flair NLP is maintained by:
+
+
+ Alan Akbik
+ Humboldt-Universität zu Berlin
+ Institut für Informatik / Lehrstuhl Maschinelles Lernen
+ Unter den Linden 6
+ 10099 Berlin
+ Germany
+
+ Privacy Policy
+ The webserver / web hosting company might collect certain log files to prevent abuse of services.
+ These log files can include: IP address, URL, date and time.
+ We do not use any tracking services or cookies to track or re-identify visitors.
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/_templates/version-switcher.html b/docs/_templates/version-switcher.html
index 1d21c6c65f..ad1676b4d8 100644
--- a/docs/_templates/version-switcher.html
+++ b/docs/_templates/version-switcher.html
@@ -1,30 +1,45 @@
{# As the version switcher will only work when JavaScript is enabled, we add it through JavaScript.
#}
+
diff --git a/docs/api/datasets/base.rst b/docs/api/datasets/base.rst
index e42784deb0..80c375eec8 100644
--- a/docs/api/datasets/base.rst
+++ b/docs/api/datasets/base.rst
@@ -1,4 +1,8 @@
flair.datasets.base
===================
-.. automodule:: flair.datasets.base
\ No newline at end of file
+.. currentmodule:: flair.datasets.base
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/datasets/biomedical.rst b/docs/api/datasets/biomedical.rst
index d59bd8c589..c1d2525ece 100644
--- a/docs/api/datasets/biomedical.rst
+++ b/docs/api/datasets/biomedical.rst
@@ -1,4 +1,8 @@
flair.datasets.biomedical
=========================
-.. automodule:: flair.datasets.biomedical
\ No newline at end of file
+.. currentmodule:: flair.datasets.biomedical
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/datasets/document_classification.rst b/docs/api/datasets/document_classification.rst
index d8303f3aeb..0de14b6cdd 100644
--- a/docs/api/datasets/document_classification.rst
+++ b/docs/api/datasets/document_classification.rst
@@ -1,4 +1,8 @@
flair.datasets.document_classification
======================================
-.. automodule:: flair.datasets.document_classification
\ No newline at end of file
+.. currentmodule:: flair.datasets.document_classification
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/datasets/entity_linking.rst b/docs/api/datasets/entity_linking.rst
index cdb2b32356..a88308e97d 100644
--- a/docs/api/datasets/entity_linking.rst
+++ b/docs/api/datasets/entity_linking.rst
@@ -1,4 +1,8 @@
flair.datasets.entity_linking
=============================
-.. automodule:: flair.datasets.entity_linking
\ No newline at end of file
+.. currentmodule:: flair.datasets.entity_linking
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/datasets/ocr.rst b/docs/api/datasets/ocr.rst
index 3f85340440..f5629a5631 100644
--- a/docs/api/datasets/ocr.rst
+++ b/docs/api/datasets/ocr.rst
@@ -1,4 +1,8 @@
flair.datasets.ocr
==================
-.. automodule:: flair.datasets.ocr
\ No newline at end of file
+.. currentmodule:: flair.datasets.ocr
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/datasets/relation_extraction.rst b/docs/api/datasets/relation_extraction.rst
index 62dcdd55d1..fdbb690cfe 100644
--- a/docs/api/datasets/relation_extraction.rst
+++ b/docs/api/datasets/relation_extraction.rst
@@ -1,4 +1,8 @@
flair.datasets.relation_extraction
==================================
-.. automodule:: flair.datasets.relation_extraction
\ No newline at end of file
+.. currentmodule:: flair.datasets.relation_extraction
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/datasets/sequence_labeling.rst b/docs/api/datasets/sequence_labeling.rst
index 875d4831b1..0c0abc520d 100644
--- a/docs/api/datasets/sequence_labeling.rst
+++ b/docs/api/datasets/sequence_labeling.rst
@@ -1,4 +1,8 @@
flair.datasets.sequence_labeling
================================
-.. automodule:: flair.datasets.sequence_labeling
\ No newline at end of file
+.. currentmodule:: flair.datasets.sequence_labeling
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/datasets/text_image.rst b/docs/api/datasets/text_image.rst
index f14e564916..173928dfc1 100644
--- a/docs/api/datasets/text_image.rst
+++ b/docs/api/datasets/text_image.rst
@@ -1,4 +1,8 @@
flair.datasets.text_image
=========================
-.. automodule:: flair.datasets.text_image
\ No newline at end of file
+.. currentmodule:: flair.datasets.text_image
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/datasets/text_text.rst b/docs/api/datasets/text_text.rst
index f88dfd1aed..79a60ae609 100644
--- a/docs/api/datasets/text_text.rst
+++ b/docs/api/datasets/text_text.rst
@@ -1,4 +1,10 @@
flair.datasets.text_text
-=========================
+========================
+
+.. currentmodule:: flair.datasets.text_text
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
+
-.. automodule:: flair.datasets.text_text
\ No newline at end of file
diff --git a/docs/api/datasets/treebanks.rst b/docs/api/datasets/treebanks.rst
index 0d6c14a281..82cba954f7 100644
--- a/docs/api/datasets/treebanks.rst
+++ b/docs/api/datasets/treebanks.rst
@@ -1,4 +1,8 @@
flair.datasets.treebanks
========================
-.. automodule:: flair.datasets.treebanks
\ No newline at end of file
+.. currentmodule:: flair.datasets.treebanks
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/embeddings/base.rst b/docs/api/embeddings/base.rst
index 1bf51ffa7a..02a65a20b9 100644
--- a/docs/api/embeddings/base.rst
+++ b/docs/api/embeddings/base.rst
@@ -1,4 +1,8 @@
flair.embeddings.base
=====================
-.. automodule:: flair.embeddings.base
\ No newline at end of file
+.. currentmodule:: flair.embeddings.base
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/embeddings/document.rst b/docs/api/embeddings/document.rst
index ca870fc8ea..8c5aea548d 100644
--- a/docs/api/embeddings/document.rst
+++ b/docs/api/embeddings/document.rst
@@ -1,4 +1,8 @@
flair.embeddings.document
=========================
-.. automodule:: flair.embeddings.document
\ No newline at end of file
+.. currentmodule:: flair.embeddings.document
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/embeddings/image.rst b/docs/api/embeddings/image.rst
index 2a701b9e0b..6a115e705c 100644
--- a/docs/api/embeddings/image.rst
+++ b/docs/api/embeddings/image.rst
@@ -1,4 +1,8 @@
flair.embeddings.image
======================
-.. automodule:: flair.embeddings.image
\ No newline at end of file
+.. currentmodule:: flair.embeddings.image
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/embeddings/legacy.rst b/docs/api/embeddings/legacy.rst
index 974a777eb9..a177a1ffc2 100644
--- a/docs/api/embeddings/legacy.rst
+++ b/docs/api/embeddings/legacy.rst
@@ -1,8 +1,8 @@
flair.embeddings.legacy
-============================
+=======================
-.. warning::
- All embeddings in `flair.embeddings.legacy` are considered deprecated.
- there is no guarantee that they are still working and we recommend using different embeddings instead.
+.. currentmodule:: flair.embeddings.legacy
-.. automodule:: flair.embeddings.legacy
\ No newline at end of file
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/embeddings/token.rst b/docs/api/embeddings/token.rst
index 3705fedb1d..7fc6305bdb 100644
--- a/docs/api/embeddings/token.rst
+++ b/docs/api/embeddings/token.rst
@@ -1,4 +1,8 @@
flair.embeddings.token
======================
-.. automodule:: flair.embeddings.token
\ No newline at end of file
+.. currentmodule:: flair.embeddings.token
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/embeddings/transformer.rst b/docs/api/embeddings/transformer.rst
index 2bda02f771..51e04a43c9 100644
--- a/docs/api/embeddings/transformer.rst
+++ b/docs/api/embeddings/transformer.rst
@@ -1,4 +1,8 @@
flair.embeddings.transformer
============================
-.. automodule:: flair.embeddings.transformer
\ No newline at end of file
+.. currentmodule:: flair.embeddings.transformer
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/flair.data.rst b/docs/api/flair.data.rst
index 00dd67a521..dae99e093b 100644
--- a/docs/api/flair.data.rst
+++ b/docs/api/flair.data.rst
@@ -1,4 +1,8 @@
flair.data
==========
-.. automodule:: flair.data
\ No newline at end of file
+.. currentmodule:: flair.data
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/flair.datasets.rst b/docs/api/flair.datasets.rst
index 9a883c3e61..d822186e67 100644
--- a/docs/api/flair.datasets.rst
+++ b/docs/api/flair.datasets.rst
@@ -1,6 +1,8 @@
flair.datasets
==============
+.. currentmodule:: flair.datasets
+
.. toctree::
:glob:
:maxdepth: 2
diff --git a/docs/api/flair.embeddings.rst b/docs/api/flair.embeddings.rst
index 3f70e62bef..82905def03 100644
--- a/docs/api/flair.embeddings.rst
+++ b/docs/api/flair.embeddings.rst
@@ -1,6 +1,8 @@
flair.embeddings
================
+.. currentmodule:: flair.embeddings
+
.. toctree::
:glob:
:maxdepth: 2
diff --git a/docs/api/flair.models.rst b/docs/api/flair.models.rst
index 8679b3fb7d..0451fb30bd 100644
--- a/docs/api/flair.models.rst
+++ b/docs/api/flair.models.rst
@@ -1,4 +1,8 @@
flair.models
============
-.. automodule:: flair.models
\ No newline at end of file
+.. currentmodule:: flair.models
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/flair.nn.rst b/docs/api/flair.nn.rst
index 4eb066d3ea..6a7247256a 100644
--- a/docs/api/flair.nn.rst
+++ b/docs/api/flair.nn.rst
@@ -1,4 +1,8 @@
flair.nn
========
-.. automodule:: flair.nn
\ No newline at end of file
+.. currentmodule:: flair.nn
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/flair.rst b/docs/api/flair.rst
index 4e12a03829..946c68a6a4 100644
--- a/docs/api/flair.rst
+++ b/docs/api/flair.rst
@@ -1,4 +1,8 @@
flair
=====
-.. automodule:: flair
\ No newline at end of file
+.. currentmodule:: flair
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/flair.splitter.rst b/docs/api/flair.splitter.rst
index 5863df5788..f9b71de316 100644
--- a/docs/api/flair.splitter.rst
+++ b/docs/api/flair.splitter.rst
@@ -1,4 +1,9 @@
flair.splitter
==============
-.. automodule:: flair.splitter
\ No newline at end of file
+.. currentmodule:: flair.splitter
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
+
diff --git a/docs/api/flair.tokenization.rst b/docs/api/flair.tokenization.rst
index 00f2bc4bfd..ec5ca557d1 100644
--- a/docs/api/flair.tokenization.rst
+++ b/docs/api/flair.tokenization.rst
@@ -1,4 +1,8 @@
flair.tokenization
==================
-.. automodule:: flair.tokenization
\ No newline at end of file
+.. currentmodule:: flair.tokenization
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/flair.trainers.plugins.rst b/docs/api/flair.trainers.plugins.rst
index 4bb766876b..acd8109cf4 100644
--- a/docs/api/flair.trainers.plugins.rst
+++ b/docs/api/flair.trainers.plugins.rst
@@ -1,4 +1,8 @@
flair.trainers.plugins
======================
-.. automodule:: flair.trainers.plugins
\ No newline at end of file
+.. currentmodule:: flair.trainers.plugins
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/api/flair.trainers.rst b/docs/api/flair.trainers.rst
index db11b5029c..ac59a85039 100644
--- a/docs/api/flair.trainers.rst
+++ b/docs/api/flair.trainers.rst
@@ -1,4 +1,8 @@
flair.trainers
==============
-.. automodule:: flair.trainers
\ No newline at end of file
+.. currentmodule:: flair.trainers
+
+.. autosummary::
+ :toctree: generated
+ :nosignatures:
diff --git a/docs/conf.py b/docs/conf.py
index 64624043e0..c1be9c0079 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,4 +1,5 @@
# noqa: INP001
+import inspect
import importlib_metadata
@@ -27,21 +28,18 @@
} # dummy value that sphinx-github-style won't crash when run in temp folder.
html_theme_options = {
- "navbar_end": ["theme-switcher", "version-switcher", "navbar-icon-links"],
- "github_url": linkcode_url,
- "icon_links": [
- {
- "name": "PyPI",
- "url": "https://pypi.org/project/flair",
- "icon": "fas fa-box",
- },
- ],
+ "navbar_end": ["darkmode-toggle", "version-switcher", "navbar-icon-links"],
+ "show_prev_next": False,
+ "footer_end": ["footer-links/legal-notice.html", "footer-links/x.html", "footer-links/linkedin.html"],
+ "secondary_sidebar_items": []
}
def linkcode_resolve(*args):
+ app = inspect.currentframe().f_back.f_locals.get("app")
+ current_version = app.config.smv_current_version
# use smv_current_version as the git url
- real_linkcode_url = linkcode_url + f"/blob/{smv_current_version}/" + "{filepath}#L{linestart}-L{linestop}"
+ real_linkcode_url = linkcode_url + f"/blob/{current_version}/" + "{filepath}#L{linestart}-L{linestop}"
return get_linkcode_resolve(real_linkcode_url)(*args)
@@ -56,13 +54,15 @@ def linkcode_resolve(*args):
"sphinx.ext.ifconfig",
"sphinx.ext.napoleon", # to render Google format docstrings
"sphinx.ext.githubpages",
+ "sphinx_autosummary_autocollect",
"myst_parser",
"sphinx_github_style",
"sphinx_autodoc_typehints",
"sphinx_multiversion",
"sphinx_design",
]
-
+autosummary_generate = True
+autosummary_ignore_module_all = False
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
@@ -82,6 +82,22 @@ def linkcode_resolve(*args):
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
+html_title = 'Flair Documentation'
+
+html_css_files = [
+ 'css/main.css',
+ 'css/header.css',
+ 'css/footer.css',
+ 'css/version-switcher.css',
+ 'css/sidebar.css',
+ 'css/tutorial.css',
+ 'css/api.css',
+ 'css/legal-notice.css',
+ 'css/search.css',
+]
+
+html_logo = "_static/flair_logo_white.svg"
+html_show_sphinx = False
# Napoleon settings
napoleon_include_init_with_doc = True
@@ -103,9 +119,7 @@ def linkcode_resolve(*args):
html_sidebars = {
"**": [
- "globaltoc.html",
- "searchbox.html",
- "versioning.html",
+ "globaltoc.html"
],
"index": [],
}
diff --git a/docs/glossary/index.rst b/docs/glossary/index.rst
deleted file mode 100644
index c732a1a121..0000000000
--- a/docs/glossary/index.rst
+++ /dev/null
@@ -1,7 +0,0 @@
-Glossary
-========
-
-.. glossary::
-
- Sentence
- a sentence is a text-unit consisting of tokens, labels and possibly metadata. Notice that a sentence is not limited in size, hence a Sentence itself could hold either a full document, a paragraph, a simple phrase or a linguistic
\ No newline at end of file
diff --git a/docs/index.rst b/docs/index.rst
index 3cff769118..c39010a2c7 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -1,95 +1,20 @@
-flair
-=====
-
.. _flair_docs_mainpage:
+.. title:: Home
-**Version**: |version|
-
-**Useful links**:
-`Getting started `_ |
-`Source Repository `_ |
-`Issue Tracker `_ |
-
-Flair is a very simple framework for state-of-the-art Natural Language Processing (NLP)
-
-.. grid:: 2
-
- .. grid-item-card::
- :img-top: ./_static/tutorial.svg
-
- Tutorial
- ^^^^^^^^
-
- New to Flair? Check out the Tutorials. It contains an introduction to Flair's main concepts.
-
- +++
-
- .. button-ref:: tutorial/index
- :expand:
- :color: secondary
- :click-parent:
-
- To the tutorials
-
- .. grid-item-card::
- :img-top: ./_static/api.svg
-
- API-docs
- ^^^^^^^^
-
- The API-docs provides in-depth information on the classes and functions designed for public use.
-
- +++
-
- .. button-ref:: api/index
- :expand:
- :color: secondary
- :click-parent:
-
- To the API docs
-
- .. grid-item-card::
- :img-top: ./_static/contributing.svg
-
- Contributor's Guide
- ^^^^^^^^^^^^^^^^^^^
-
- Want to add to the codebase? Can help add to the
- documentation? The contributing guidelines will guide you through the
- process of improving Flair.
-
- +++
-
- .. button-ref:: contributing/index
- :expand:
- :color: secondary
- :click-parent:
-
- To the contributor's guide
-
- .. grid-item-card::
- :img-top: ./_static/glossary.svg
-
- Glossary
- ^^^^^^^^
-
- Not sure what the exact meaning of certain terms is? Find their definition in the Glossary.
-
- +++
+.. raw:: html
+ :file: _templates/landing_page_styles.html
- .. button-ref:: glossary/index
- :expand:
- :color: secondary
- :click-parent:
+.. raw:: html
+ :file: _templates/landing-page-banner.html
- To the glossary
+.. raw:: html
+ :file: _templates/landing-page-illustrations.html
.. toctree::
:maxdepth: 3
:hidden:
Tutorials
- API reference
- Contributing
- Glossary
\ No newline at end of file
+ API
+ Contributing
\ No newline at end of file
diff --git a/docs/legal-notice/index.rst b/docs/legal-notice/index.rst
new file mode 100644
index 0000000000..585047fc11
--- /dev/null
+++ b/docs/legal-notice/index.rst
@@ -0,0 +1,15 @@
+Legal Notice
+============
+
+.. title:: Legal Notice
+
+.. raw:: html
+ :file: ../_templates/legal-notice-content.html
+
+.. toctree::
+ :maxdepth: 3
+ :hidden:
+
+ Tutorials <../tutorial/index>
+ API <../api/index>
+ Contributing <../contributing/index>
\ No newline at end of file
diff --git a/docs/requirements.txt b/docs/requirements.txt
index 0e8c4f6141..ff23c9f129 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -1,11 +1,12 @@
sphinx-github-style<=1.0.2 # 1.0.3 changes logic that breaks with sphinx-multiversion
sphinx-autodoc-typehints
myst-parser
-sphinx
+sphinx<8.0.0
importlib-metadata
sphinx-multiversion
pydata-sphinx-theme<0.14
sphinx_design
+sphinx-autosummary-autocollect
# previous dependencies that are required to build docs for later versions too.
semver
diff --git a/docs/tutorial/tutorial-training/how-to-load-prepared-dataset.md b/docs/tutorial/tutorial-training/how-to-load-prepared-dataset.md
index ed29bea502..f5cd654ed7 100644
--- a/docs/tutorial/tutorial-training/how-to-load-prepared-dataset.md
+++ b/docs/tutorial/tutorial-training/how-to-load-prepared-dataset.md
@@ -168,7 +168,7 @@ from flair.data import MultiCorpus
multi_corpus = MultiCorpus([english_corpus, german_corpus, dutch_corpus])
```
-The [`MultiCorpus`](#flair.data.MultiCorpus) inherits from `[`Corpus`](#flair.data.Corpus), so you can use it like any other corpus to train your models.
+The [`MultiCorpus`](#flair.data.MultiCorpus) inherits from [`Corpus`](#flair.data.Corpus), so you can use it like any other corpus to train your models.
## Datasets included in Flair
diff --git a/docs/tutorial/tutorial-training/how-to-train-span-classifier.md b/docs/tutorial/tutorial-training/how-to-train-span-classifier.md
index e5d32cb426..21c5ee7de7 100644
--- a/docs/tutorial/tutorial-training/how-to-train-span-classifier.md
+++ b/docs/tutorial/tutorial-training/how-to-train-span-classifier.md
@@ -1,8 +1,7 @@
# Train a span classifier
Span Classification models are used to model problems such as entity linking, where you already have extracted some
-relevant spans
-within the {term}`Sentence` and want to predict some more fine-grained labels.
+relevant spans within the `Sentence` and want to predict some more fine-grained labels.
This tutorial section show you how to train models using the [Span Classifier](#flair.models.SpanClassifier) in Flair.