Skip to content

Install instructions fail to install the program correctly #1

@Peilonrayz

Description

@Peilonrayz

To install your library I had to do the following:

pip install grammar

python -c "import grammar"
# ModuleNotFoundError: No module named 'spacy'
pip install spacy

python -c "import grammar"
# ModuleNotFoundError: No module named 'base32hex'
pip install base32hex

python -c "import grammar"
# OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.
python -m spacy download en

python -c "import grammar"
# Finally it worked!

Your documentation also doesn't explain where display comes from. And you can just use .view().

from grammar import Document

# create document
document = Document("He also begat and brought up five pairs of male children.")
document.graph.render().view()

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