CodeMixed-Text-Generator icon indicating copy to clipboard operation
CodeMixed-Text-Generator copied to clipboard

Cannot compare float and str

Open cesaSalaam opened this issue 4 years ago • 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

cesaSalaam avatar Aug 17 '21 12:08 cesaSalaam

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

mohdsanadzakirizvi avatar Aug 17 '21 13:08 mohdsanadzakirizvi

I did face a problem there, yes.

cesaSalaam avatar Aug 17 '21 16:08 cesaSalaam

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

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

mohdsanadzakirizvi avatar Aug 17 '21 16:08 mohdsanadzakirizvi