Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to add SpacyProcessor #66

Open
zhanyuanucb opened this issue Jul 13, 2021 · 2 comments
Open

Fail to add SpacyProcessor #66

zhanyuanucb opened this issue Jul 13, 2021 · 2 comments

Comments

@zhanyuanucb
Copy link

Describe the bug
Encounter zipfile.BadZipFile: File is not a zip file while initializing a Pipeline with a SpacyProcessor.

To Reproduce
Steps to reproduce the behavior:

from forte.pipeline import Pipeline
from forte.spacy.spacy_processors import SpacyProcessor
from forte.data.readers import TerminalReader

spacy_config_1 = {
    "processors": "sentence, umls_link",
    "lang": "en_ner_bionlp13cg_md",
    "use_gpu": False
}
test_pipeline = Pipeline().set_reader(TerminalReader()).add(SpacyProcessor(), config=spacy_config_1).initialize()

Environment (please complete the following information):

  • OS: Ubuntu
  • Version 16.04.7 LTS
  • Python and Package verions: Python 3.6.13, Forte 0.1.1, Spacy 2.3.5, Scispacy 0.3.0
@hunterhector
Copy link
Member

Did you try this in a fresh environment? I try the example and it works on my side.

Here, the File is not a zip file since to be that the en-ner-bionlp13cg-md-0.3.0 model is not downloaded. Could you paste the full stack trace to help debug?

@hunterhector
Copy link
Member

btw, SpacyProcessor are now at fortex.spacy. We have to change the name due to a problem we find.

a9e5127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants