Loading tutorials
Doc. You will learn what each of those objects is, how the pieces connect, and which mistakes cause the most confusion early on.6 min readen_core_web_sm with python -m spacy download en_core_web_sm. It also assumes you have seen nlp(text) return a Doc. Part-of-speech 5 min readDoc, as covered earlier in the tutorial. It also assumes you know basic grammar terms such as noun, verb, and adjective. Here you will learn why every token carries two part-of-speech labels, what each one means, and when to use5 min readpos_ and tag_. You should also know basic grammar terms such as noun, verb, singular and plural. The chapter covers what token.morph stores, how to query it, and where it comes from. It also covers the mistakes that tend to appear whe5 min readDoc, and read token.pos_ and token.tag_. These were covered in the earlier chapters on tokens and part-of-speech tags. Here you will see what a lemma is, where it comes from, and why a wrong or missing POS tag produces a wrong 5 min readdep_ and head, along with the common errors people make when reading them.6 min readdep_ and head as covered in earlier chapters. It explains where doc.sents comes from, how to check and control it, and what goes wrong when boundaries are missing or misplaced.4 min readspacy.load, that you have read token.dep_ and token.head, and that you know the difference between pos_ and tag_. Here you will draw a dependency parse, change how the drawing looks, save it, and use it to check a parse by eye.4 min readdep_ label and a head. This chapter uses those two attributes to move around the parse. You will go down from a head to its dependents, up from a dependent to the root, and across to a whole phrase.5 min readtoken.dep_ and token.head, as covered in the earlier chapters on dependency relations and tree navigation. You should also be comfortable with Span slicing, such as doc[2:5]. The examples use en_core_web_sm, which you install with5 min readtoken.dep_, token.head, and token.children. It also assumes you know what pos_ means and can read a dependency tree. You will turn those tree links into subject-verb-object (SVO) triples, then handle the cases that break a naive ver5 min readchildren, subtree, and loops to pull relations out of a parse. That works, but each new relation needs a new hand-written loop. DependencyMatcher lets you describe a relation as a small pattern and have spaCy find every place in a Doc where it holds.5 min readpos_, dep_, and lemma_, and run Python from a script or notebook. You should also know that en_core_web_sm has been installed with python -m spacy download en_core_web_sm. Here you will see which components p6 min readpos_, tag_, dep_ and head, and walk a tree with children and subtree. You should also have written at least one extraction rule, such as the subject-verb-object loop from the earlier chapters.6 min read