See :func:`extract.words() <textacy.extract.words>` for all function kwargs.
return extract.words(self.spacy_doc, **kwargs)
@cachedmethod(attrgetter("_cache"), key=partial(hashkey, "ngrams"))
def ngrams(self, n, **kwargs):
After Change
.. seealso:: :func:`extract.words() <textacy.extract.words>` for all function kwargs.
return list(extract.words(self.spacy_doc, **kwargs))
@cachedmethod(attrgetter("_cache"), key=partial(hashkey, "ngrams"))
def ngrams(self, n, **kwargs):