Closed WinstonLam closed 3 weeks ago
We need 1 file that is responsible for all the FastText model stuff, now the model gets loaded for both semantic similarity and imageability leading to longer wait times and increased memory.
@WinstonLam please test again, my max memory with word2mnemonic was around 9GB for python
Describe the bug A MemoryError occurs when loading the FastText embeddings for the ImageabilityPredictor in imageability.py, due to the large size of the embedding model (cc.en.300.bin.gz). This suggests that the current system does not have enough memory to load the full model, limiting functionality for users with lower system resources.
To Reproduce Steps to reproduce the behavior:
Expected behavior The FastText model should load without causing a memory error, allowing the ImageabilityPredictor to function properly even on systems with lower memory.