TopicNet icon indicating copy to clipboard operation
TopicNet copied to clipboard

Datasets not loading

Open Alvant opened this issue 1 year ago • 2 comments

Hello! Can't download the datasets! Data manager functions get_info and load_dataset produce some ugly looking urllib.error.URLError...

Alvant avatar Sep 06 '23 14:09 Alvant

Hello! I am sorry to hear that. Indeed, the dataset functionality is broken. Again 😅 Looks like it's a very "thin part" of the TopicNet library that needs constant monitoring...

Anyway, until there is an official fix, you can handle the error in the following way. Find the topicnet folder on your computer:

$ python
>>> import topicnet
>>> print(topicnet.__file__)  # topicnet's source folder

After that, open the <topicnet folder>/dataset_manager/api.py file and fix the following line:

# Line 20
# _SERVER_URL = 'https://topicnet-datasets.machine-intelligence.ru'  # Old value
_SERVER_URL = 'https://topicnet-datasets.mil-team.ru'  # The fix

And that's it 🙂

P.S. Thanks for finding the bug!

Alvant avatar Sep 06 '23 14:09 Alvant

See also: https://github.com/machine-intelligence-laboratory/TopicNet/issues/95.

Alvant avatar Mar 13 '24 12:03 Alvant