CAMeL-Lab / camel_tools

A suite of Arabic natural language processing tools developed by the CAMeL Lab at New York University Abu Dhabi.
MIT License
413 stars 73 forks source link

[BUG] camel_data -i light/all not working #116

Closed pverkind closed 1 year ago

pverkind commented 1 year ago

Describe the bug Trying to download the data using the command mentioned in the documentation does not work and displays the help instead. On Windows 11, Python 3.11.1.

To Reproduce

python.exe -m pip install --upgrade pip
pip install --upgrade camel-tools
camel_data -i light

Expected behavior Downloads the data

Screenshots

image

Desktop (please complete the following information):

Additional context camel_data light does install the data; camel_data all or camel_data full does not.

owo commented 1 year ago

There are two issues here: 1) Python 3.11 is not supported since one of our dependencies, pytorch, doesn't support it at this time. We currently only support Python 3.7-3.10. Once they add support for it, we will include it in our supported Python versions. 2) Because of 1) you are installing an older version of camel-tools (current version is 1.5.2) which did not depend on pytorch. It also used a different command for installing data. As you can see from the screenshot of the help message you attached, the -i argument did not exist at that time.

I would suggest installing Python 3.10 and reinstalling camel-tools to get the latest version, otherwise we can't help you if you encounter any issues.