Skip to content
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

fix: add missing task-langs attribute #152

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

guenthermi
Copy link
Member

@guenthermi guenthermi commented Sep 13, 2023

Currently the command line tool is not working because of a change made by #131. This might be fixed if the refactoring of the command line tool propose in #7 will be ever merged. However, since this PR is work in progress for over one year and not finished. I made this small fix.

At the moment you get the following error message when you try to run the mteb comment (version on main branch) because args.task_langs does not exsists:

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/michael/workspace/mteb-long-documents/mteb/cmd.py", line 124, in <module>
    main()
  File "/home/michael/workspace/mteb-long-documents/mteb/cmd.py", line 117, in main
    task_categories=args.task_categories, task_types=args.task_types, task_langs=args.task_langs, tasks=args.tasks
AttributeError: 'Namespace' object has no attribute 'task_langs'

@NouamaneTazi NouamaneTazi merged commit bc22909 into embeddings-benchmark:main Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants