cmc-csci040
cmc-csci040 copied to clipboard
spacy
I've tried many times to install spacy so my code can run but it just gets error messages each time I try. I've tried other ways too. Is there a substitute, or a specific way to install it?
Hmmm.... some python libraries also require many other programs to be installed on a system. My guess is that you're running into issues getting spacy installed due to not having all the needed dependencies.
The specifications for the RAG assignment do not actually require you to use spacy. The only place that the code I did in class uses this library is within the score_chunk function. I believe I went through 3 different iterations of this function in class with chatgpt: the first used no external dependencies; the second used a library called nltk; the third used spacy. Each iteration added new features (and so should make the search results better), but these iterations were not strictly necessary. (The spacy iteration in particular is for making the code work multilingually for one of the extra credits.) You can just use of the previous iterations of the code if spacy is not working.