You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running this EntityLinker example code from the github repo throws the following error
OSError: [Errno 36] File name too long: '/home/username/.scispacy/datasets/e9f7327283e43f0482f7c0c71b71dec278a58ccb3ffdd03c2c2350159e7ef146.f2a350ad19015b2591545f7feeed6a6d6d2fffcd635d868a5d7fc0dfc3cadfd8.tfidf_vectors_sparse.npz'
#!/usr/bin/env python3
import spacy
import scispacy
from scispacy.linking import EntityLinker
nlp = spacy.load("en_core_sci_sm")
# This line takes a while, because we have to download ~1GB of data
# and load a large JSON file (the knowledge base). Be patient!
# Thankfully it should be faster after the first time you use it, because
# the downloads are cached.
# NOTE: The resolve_abbreviations parameter is optional, and requires that
# the AbbreviationDetector pipe has already been added to the pipeline. Adding
# the AbbreviationDetector pipe and setting resolve_abbreviations to True means
# that linking will only be performed on the long form of abbreviations.
nlp.add_pipe(
"scispacy_linker",
config={"resolve_abbreviations": False, "linker_name": "umls"},
)
This is on linux mint 20.3, python 3.7.13
The text was updated successfully, but these errors were encountered:
That being said, if you aren't able to resolve the long file names, please see #343 and #351 for how to download the files yourself and update the paths so that it should work with whatever file names you choose. Let me know if that works for you!
Running this EntityLinker example code from the github repo throws the following error
OSError: [Errno 36] File name too long: '/home/username/.scispacy/datasets/e9f7327283e43f0482f7c0c71b71dec278a58ccb3ffdd03c2c2350159e7ef146.f2a350ad19015b2591545f7feeed6a6d6d2fffcd635d868a5d7fc0dfc3cadfd8.tfidf_vectors_sparse.npz'
This is on linux mint 20.3, python 3.7.13
The text was updated successfully, but these errors were encountered: