DS4SD / deepsearch-glm

Create fast graph language models from converted PDF documents for knowledge extraction and Q&A.
MIT License
12 stars 2 forks source link

Unable to import andromeda_nlp module #44

Open abhiojha8 opened 7 months ago

abhiojha8 commented 7 months ago

I am getting the below error when trying to run the first code snippet in README. The error originates from the import statement - from deepsearch_glm.nlp_utils import init_nlp_model, print_on_shell - see below for more details.

ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], [line 2](vscode-notebook-cell:?execution_count=1&line=2)
      [1](vscode-notebook-cell:?execution_count=1&line=1) from deepsearch_glm.utils.load_pretrained_models import load_pretrained_nlp_models
----> [2](vscode-notebook-cell:?execution_count=1&line=2) from deepsearch_glm.nlp_utils import init_nlp_model, print_on_shell

File [~/miniconda3/envs/deepsearch-glm/lib/python3.12/site-packages/deepsearch_glm/nlp_utils.py:20](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/abhi-ibm/deepsearch-rag/notebooks/~/miniconda3/envs/deepsearch-glm/lib/python3.12/site-packages/deepsearch_glm/nlp_utils.py:20)
     [16](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/abhi-ibm/deepsearch-rag/notebooks/~/miniconda3/envs/deepsearch-glm/lib/python3.12/site-packages/deepsearch_glm/nlp_utils.py:16) from tabulate import tabulate
     [18](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/abhi-ibm/deepsearch-rag/notebooks/~/miniconda3/envs/deepsearch-glm/lib/python3.12/site-packages/deepsearch_glm/nlp_utils.py:18) from deepsearch_glm.utils.ds_utils import get_scratch_dir
---> [20](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/abhi-ibm/deepsearch-rag/notebooks/~/miniconda3/envs/deepsearch-glm/lib/python3.12/site-packages/deepsearch_glm/nlp_utils.py:20) from deepsearch_glm.andromeda_nlp import nlp_model
     [21](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/abhi-ibm/deepsearch-rag/notebooks/~/miniconda3/envs/deepsearch-glm/lib/python3.12/site-packages/deepsearch_glm/nlp_utils.py:21) #import andromeda_nlp
     [23](https://vscode-remote+wsl-002bubuntu.vscode-resource.vscode-cdn.net/home/abhi-ibm/deepsearch-rag/notebooks/~/miniconda3/envs/deepsearch-glm/lib/python3.12/site-packages/deepsearch_glm/nlp_utils.py:23) def create_nlp_dir(tdir=None):

ModuleNotFoundError: No module named 'deepsearch_glm.andromeda_nlp'