Skip to content

Unable to download from catalog #74

Description

@Andrew03

Repro steps:
Install lexnlp pip install lexnlp
Start a python interactive shell and run

from lexnlp.ml.catalog.download import download_github_release

Import fails with error message

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/Andrew.Hoang/.local/share/virtualenvs/binary_contract_classification-0V95ndJZ/lib/python3.8/site-packages/lexnlp/ml/catalog/__init__.py", line 20, in <module>
    CATALOG: Path = Path(nltk.data.find('')) / 'lexpredict-lexnlp'
  File "/Users/Andrew.Hoang/.local/share/virtualenvs/binary_contract_classification-0V95ndJZ/lib/python3.8/site-packages/nltk/data.py", line 560, in find
    resource_zipname = resource_name.split("/")[1]
IndexError: list index out of range

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions