Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "For this recipe, we will need just the beginning of the book, which can be found in the sherlock_holmes_1.txt
file."
A block of code is set as follows:
filename = "sherlock_holmes_1.txt" file = open(filename, "r", encoding="utf-8") text = file.read()
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
import time start = time.time() main() print("%s s" % (time.time() - start))
Any command-line input or output is written as follows:
python -m spacy download es_core_news_sm
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "It shows that three words from the vocabulary are present, which are seen, of, and Holmes."
Tips or important notes
Appear like this.