jind11 / TextFooler

A Model for Natural Language Attack on Text Classification and Inference
MIT License
485 stars 79 forks source link

Not able to run cos_sim.py #30

Closed ashwani-bhat closed 3 years ago

ashwani-bhat commented 4 years ago

Hi. I am trying to run comp_cos_sim_mat.py on the counter-fitted-vectors but I run into memory issues. Is there any memory limit on that. I'm using google colab 12GB RAM.

jind11 commented 4 years ago

So sorry for the late response. The cosine similarity score matrix takes about 30 GB of RAM, so 12 GB RAM is not enough and will cause the out of memory problem.