microsoft/CodeMixed-Text-Generator

Cannot compare float and str

cesaSalaam opened this issue · 3 comments

In the pre_gcm.py file, on line 49 that says
if 3 < l1len <= 100 and 3 < l2len <= 100 and pfms_score <= max_pfms:

this will produce an error because you are comparing a float (the pfms_score) and a str (max_pfms). Should convert max_pfms to float so that comparison can work

I think we're handling it somewhere, did you face an issue because of this?

I did face a problem there, yes.

Could you please provide steps to recreate the issue so that I can verify?

Specifically, your config.ini values and the error thrown.