machine-intelligence-laboratory / TopicNet

Interface for easier topic modelling.
https://machine-intelligence-laboratory.github.io/TopicNet
MIT License
140 stars 17 forks source link

Datasets not loading #92

Open Alvant opened 10 months ago

Alvant commented 10 months ago

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

Alvant commented 10 months ago

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 commented 3 months ago

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