Skip to content

module not found? #5

@buttchurch

Description

@buttchurch

Hi there, I'm new to spacy and a having a bit of a silly error, hoping someone might be able to help me out.

I've installed spacy using pip and have successfully loaded an english model like so:

import spacy
nlp = spacy.load('en_core_web_sm')

But when I try to use spacy_grammar, I get this error:

----> 2 from spacy_grammar.grammar import Grammar
      3 
      4 nlp = spacy.load('en')
      5 grammar = Grammar(nlp)

ModuleNotFoundError: No module named 'spacy_grammar'

Do I need to install something additional to make this module work? I'm following the official spacy documentation, and I've checked this github as well but I'm a little unclear. If anyone can offer help, thanks very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions