PhonologicalCorpusTools / CorpusTools

Phonological CorpusTools
http://phonologicalcorpustools.github.io/CorpusTools/
GNU General Public License v3.0
113 stars 16 forks source link

String similarity crashes when nonword is entered as Word 1. #674

Closed stannam closed 6 years ago

stannam commented 6 years ago

Error occurs when a nonword entered as Word 1. (for all algorithms)

The error message is as follows:

Traceback (most recent call last): File "c:\Users\Stanley\CorpusTools\corpustools\gui\windows.py", line 255, in newTable self.calc() File "c:\Users\Stanley\CorpusTools\corpustools\gui\windows.py", line 241, in calc kwargs = self.generateKwargs() File "c:\Users\Stanley\CorpusTools\corpustools\gui\ssgui.py", line 403, in generateKwargs kwargs['query'] = (wordOne,wordTwo) UnboundLocalError: local variable 'wordOne' referenced before assignment

YuHsiangLo commented 6 years ago

@stannam I think I fixed the error. Could you try again and let me know if the problem still persists? Thanks!

stannam commented 6 years ago

@YuHsiangLo I think you fixed the problem! I tested every combination of algorithms and all worked perfectly. Thanks.