November 2018
Beginner to intermediate
182 pages
4h 48m
English
So far, we have been trying to generate questions. But if you were trying to make an automated quiz for students, you would also need to mine the right answer.
The answer, in this case, will be simply the objects of a verb. What is an object of a verb?
Loosely, the object is the piece on which our verb acts. This is almost always the answer to our what question. Let's write a question to find the objects of any verb – or, we can pull it from textacy.spacier.utils.:
spacy_utils.get_objects_of_verb(verb)>> [engineer]Let's do this for all of ...
Read now
Unlock full access