-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Bug]: Biomedical NEN #3600
Comments
@WangXII can you take a look? |
Pinging @sg-wbi , our expert on the NEN module |
The problem is with the installation of dependencies:
but The simple fix is to change Or you can try downgrading |
I don't think scipy is used much in the library but there's a conflict in the dependencies which prevents seeing In testing |
@sg-wbi "The simple fix is to change .A to .toarray" - this worked! |
Describe the bug
When running example from Biomedical NEN (https://github.com/flairNLP/flair/blob/master/resources/docs/HUNFLAIR2.md) I get AttributeError: 'csr_matrix' object has no attribute 'A'
To Reproduce
Expected behavior
Span[0:2]: "Behavioral abnormalities" → MESH:D001523/name=Mental Disorders (197.9467010498047)
Span[4:5]: "Fmr1" → 108684022/name=FRAXA (219.9510040283203)
Span[6:7]: "Mouse" → 10090/name=Mus musculus (213.6201934814453)
Span[9:12]: "Fragile X Syndrome" → MESH:D005600/name=Fragile X Syndrome (193.7115020751953)
Logs and Stack traces
Screenshots
No response
Additional Context
Windows 11, VS Code, Python venv 3.12
Environment
Versions:
Flair
0.15.0
Pytorch
2.5.1+cu124
Transformers
4.48.1
GPU
True
The text was updated successfully, but these errors were encountered: