Learn spaCy

What are spaCy models?

When you are using spaCy you will see that they refer to the word “model” quite often. So what are models? A “model” in machine learning is the output of a machine learning algorithm run on data. Source It is easiest to explain using an example. Create a file called spacy_model.py and add the following…

Learn spaCy

How to use custom stop words in spaCy

This article is part of the Learn spaCy series Stop words are very common words like “a”, “the” etc which do not provide much information (low information density words) about the text you are analyzing. spaCy allows you to check if a given word is a stop word. Let us see how we can do…

Learn spaCy

How to get the dependency parse tree in spaCy

This article is part of the Learn spaCy series What is a dependency parse tree? While there is no simple explanation on the spaCy website, I found a good explanation on the Stanford Stanza website. Dependency parsing .. builds a tree structure of words from the input sentence, which represents the syntactic dependency relations between…

Learn spaCy

How to get part of speech tags using spaCy

This article is part of the Learn spaCy series What are part of speech tags? In corpus linguistics, part-of-speech tagging (POS tagging or PoS tagging or POST), also called grammatical tagging is the process of marking up a word in a text (corpus) as corresponding to a particular part of speech,[1] based on both its…

Learn spaCy

How to download and install spaCy

This article is part of the Learn spaCy series In this tutorial I explain how to get started with spaCy. This is intended for programmers who are familiar with Python and are interested in using the PyCharm IDE. Create a new Python project (note, PyCharm automatically creates it in a virtual environment) Add a requirements.txt…