oborchers / Fast_Sentence_Embeddings

Compute Sentence Embeddings Fast!
GNU General Public License v3.0
619 stars 83 forks source link

Encounter "Divided 0 Error" #47

Closed JacksonWuxs closed 2 years ago

JacksonWuxs commented 2 years ago

Hi Oliver,

Thanks to this great repo! But, I found some issues when I use it with SentEval.

Generally speaking, the problem is "divide by zero error" when I use uSIF(glove, length=12, ncomponents=1). The error was raised at calculating a = (1 - alpha)/(alpha * 2) at the fse/models/usif.py:line126.

If you need a minimum running code to reproduce the error, please let me know.

grantmwilliams commented 2 years ago

@JacksonWuxs do you think you could post the minimum running code example? I think I'd like to take a look at addressing the problem.

JacksonWuxs commented 2 years ago

I will try to prepare it for several days.

oborchers commented 2 years ago

@JacksonWuxs should be fixed in 0.2.0. Please re-open if still present, wasn't able to replicate the issue given the arguments provided in the issue.