Skip to content

Module 'textacy' has no attribute 'Vectorizer'`, following Quickstart docs #300

@thepartisan101

Description

@thepartisan101

Duplicate from issue #192 (solved in 2018) but cannot apply solution on textacy 0.10
Hi, I'm using Textacy on Google Colab environment, running a default hosted runtim, installed through !pip3 install textacy
I've run into the same problem as the OP in #192 , I'm following the official document examples, version installed is the latest (textacy-0.10.0).

When trying dir(textacy) this the output:
['Corpus', 'DEFAULT_DATA_DIR', 'TextStats', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__version__', 'about', 'cache', 'constants', 'corpus', 'datasets', 'extract', 'io', 'ke', 'lang_utils', 'load_spacy_lang', 'logger', 'logging', 'make_spacy_doc', 'network', 'preprocessing', 'set_doc_extensions', 'similarity', 'spacier', 'text_stats', 'text_utils', 'utils', 'vsm']

textacy.vsm.Vectorizer results in:
textacy.vsm.vectorizers.Vectorizer

but textacy.Vectorizer gives:
`AttributeError Traceback (most recent call last)
in ()
----> 1 textacy.Vectorizer

AttributeError: module 'textacy' has no attribute 'Vectorizer'`

Thanks for any help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions