Introducing textacy

Alternatively, we can import them from textacy itself:

from textacy.spacier import utils as spacy_utils

Inside a Jupyter Notebook, you can see the docstring AND function implementation by using the ?? syntax inside the Jupyter Notebook itself:

??spacy_utils.get_main_verbs_of_sent# Signature: spacy_utils.get_main_verbs_of_sent(sent)# Source:   # def get_main_verbs_of_sent(sent):#     """Return the main (non-auxiliary) verbs in a sentence."""#     return [tok for tok in sent#             if tok.pos == VERB and tok.dep_ not in constants.AUX_DEPS]# File:      d:\miniconda3\envs\nlp\lib\site-packages\textacy\spacier\utils.py# Type:      function

Usually, when you ask somebody a question, they are often about a piece of information, for example, What is the ...

Get Natural Language Processing with Python Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.