eric11eca / disco

Generating diverse counterfactual data for Natural Language Understanding tasks using Large Language Models (LLMs). The generator supports GPT-3, ChatGPT, and GPT-4.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModuleNotFoundError: No module named 'textdistance'`

Siki-cloud opened this issue · comments

Hi, I am trying to run the Disco, but i get the below infomation:
It appears that a file "textdistance" is missing in the 'filter' directory (distiller/filter).

Could you kindly provide it? Many thanks~.

$ python run.py
Traceback (most recent call last):
  File "disco-main/run.py", line 14, in <module>
    from distiller.prompt.retrieval import get_task_class
  File "disco-main/distiller/prompt/retrieval.py", line 2, in <module>
    from distiller.prompt.lib.anli import AdversarialNliTask
  File "disco-main/distiller/prompt/lib/anli.py", line 12, in <module>
    from distiller.filter.retrieval import FILTER_DICT
  File "disco-main/distiller/filter/retrieval.py", line 3, in <module>
    from distiller.filter.core import SentencePairHeuristicFilter
  File "disco-main/distiller/filter/core.py", line 4, in <module>
    **import textdistance as tdist**
ModuleNotFoundError: No module named 'textdistance'

Sorry,i just misunderstood the error.
i had fixed it by "pip install textdistance"😅