ArticleslgStudy

computer science

SpaCy

SpaCy is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand SpaCy rather than just read about it. In short: spaCy ( spay-SEE) is an open-source software library for advanced natural language processing, written in the programming languages Python and Cython. The library is published under the MIT license and its main developers are Matthew Honnibal and Ines Montani, the founders of the software company Explosion.

SpaCy — main illustration
SpaCy — illustration

Key takeaways

  • SpaCy belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect SpaCy to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of SpaCy from memory before moving on to harder problems.

Reference excerpt

spaCy ( spay-SEE) is an open-source software library for advanced natural language processing, written in the programming languages Python and Cython. The library is published under the MIT license and its main developers are Matthew Honnibal and Ines Montani, the founders of the software company Explosion. Unlike NLTK, which is widely used for teaching and research, spaCy focuses on providing software for production usage. spaCy also supports deep learning workflows that allow connecting statistical models trained by popular machine learning libraries like TensorFlow, PyTorch or MXNet through its own machine learning library Thinc. Using Thinc as its backend, spaCy features convolutional neural network models for part-of-speech tagging, dependency parsing, text categorization and named entity recognition (NER). Prebuilt statistical neural network models to perform these tasks are available for 23 languages, including English, Portuguese, Spanish, Russian and Chinese, and there is also a multi-language NER model. Additional support for tokenization for more than 65 languages allows users to train custom models on their own datasets as well.

History Version 1.0 was released on October 19, 2016, and included preliminary support for deep learning workflows by supporting custom processing pipelines. It further included a rule matcher that supported entity annotations, and an officially documented training API. Version 2.0 was released on November 7, 2017, and introduced convolutional neural network models for 7 different languages. It also supported custom processing pipeline components and extension attributes, and featured a built-in trainable text classification component. Version 3.0 was released on February 1, 2021, and introduced state-of-the-art transformer-based pipelines. It also introduced a new configuration system and training workflow, as well as type hints and project templates. This version dropped support for Python 2.

Main features Non-destructive tokenization "Alpha tokenization" support for over 65 languages Built-in support for trainable pipeline components such as Named entity recognition, Part-of-speech tagging, dependency parsing, Text classification, Entity Linking and more Statistical models for 19 languages Multi-task learning with pretrained transformers like BERT Support for custom models in PyTorch, TensorFlow and other frameworks State-of-the-art speed and accuracy Production-ready training system Built-in visualizers for syntax and named entities Easy model packaging, deployment and workflow management

Extensions and visualizers

spaCy comes with several extensions and visualizations that are available as free, open-source libraries:

Thinc: A machine learning library optimized for CPU usage and deep learning with text input. sense2vec: A library for computing word similarities, based on Word2vec. displaCy: An open-source dependency parse tree visualizer built with JavaScript, CSS and SVG. displaCyENT: An open-source named entity visualizer built with JavaScript and CSS.

See also

Gensim Natural Language Toolkit

References

External links Official website

Illustrations

SpaCy illustration
SpaCy: Dependency parse tree visualization generated with the displaCy visualizer
Dependency parse tree visualization generated with the displaCy visualizer

Worked examples

Example 1 — a first encounter with SpaCy

Start with the simplest possible case. Write down what SpaCy claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to SpaCy before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about SpaCy ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of SpaCy

In research
SpaCy appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses SpaCy in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
SpaCy is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2015 software, Free science software, Natural language processing toolkits, so understanding it makes those chapters shorter.
In everyday life
Look for SpaCy outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “SpaCy” →

How to study SpaCy in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what SpaCy means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain SpaCy out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is SpaCy in simple terms?

spaCy ( spay-SEE) is an open-source software library for advanced natural language processing, written in the programming languages Python and Cython. The library is published under the MIT license and its main developers are Matthew Honnibal and Ines Montani, the founders of the software company E…

Why does SpaCy matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study SpaCy?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on SpaCy.

Tags

  • 2015 software
  • Free science software
  • Natural language processing toolkits
  • Python (programming language) libraries

Keep exploring