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

TypeError: type() takes 1 or 3 arguments #58

Open
tkmamidi opened this issue Mar 11, 2022 · 0 comments
Open

TypeError: type() takes 1 or 3 arguments #58

tkmamidi opened this issue Mar 11, 2022 · 0 comments

Comments

@tkmamidi
Copy link

When using python 3.9, I'm getting this following error

TypeError: type() takes 1 or 3 arguments
Traceback:
File "/Users/tarunmamidi/opt/anaconda3/envs/hazel/lib/python3.9/site-packages/streamlit/script_runner.py", line 430, in _run_script
    exec(code, module.__dict__)
File "/Users/tarunmamidi/Documents/Development/uab-meter/src/streamlit.py", line 39, in <module>
    main()
File "/Users/tarunmamidi/Documents/Development/uab-meter/src/streamlit.py", line 35, in main
    page = page()
File "/Users/tarunmamidi/Documents/Development/uab-meter/src/diagnosis/diagnosis.py", line 80, in hd
    data, id_to_name, res, gene2hpo, flat_ls, staged_data, extract = load_data()
File "/Users/tarunmamidi/opt/anaconda3/envs/hazel/lib/python3.9/site-packages/streamlit/legacy_caching/caching.py", line 573, in wrapped_func
    return get_or_create_cached_value()
File "/Users/tarunmamidi/opt/anaconda3/envs/hazel/lib/python3.9/site-packages/streamlit/legacy_caching/caching.py", line 557, in get_or_create_cached_value
    return_value = func(*args, **kwargs)
File "/Users/tarunmamidi/Documents/Development/uab-meter/src/diagnosis/diagnosis.py", line 75, in load_data
    extract = Extractor(remove_negated=True)
File "/Users/tarunmamidi/opt/anaconda3/envs/hazel/lib/python3.9/site-packages/txt2hpo/extract.py", line 186, in __init__
    self.negation_model = nlp_model(negation_language=negation_language)
File "/Users/tarunmamidi/opt/anaconda3/envs/hazel/lib/python3.9/site-packages/txt2hpo/nlp.py", line 14, in nlp_model
    nlp.add_pipe(nlp.create_pipe('sentencizer'))
File "/Users/tarunmamidi/opt/anaconda3/envs/hazel/lib/python3.9/site-packages/spacy/language.py", line 302, in create_pipe
    return factory(self, **config)
File "/Users/tarunmamidi/opt/anaconda3/envs/hazel/lib/python3.9/site-packages/spacy/language.py", line 1045, in factory
    return obj.from_nlp(nlp, **cfg)
File "pipes.pyx", line 1465, in spacy.pipeline.pipes.Sentencizer.from_nlp

I saw the similar issue here.

Can you please help me with this?

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

1 participant