paraphrase-id-tensorflow icon indicating copy to clipboard operation
paraphrase-id-tensorflow copied to clipboard

remove the overrides , otherwise it reports error

Open SeekPoint opened this issue 7 years ago • 5 comments

Traceback (most recent call last): File "scripts/run_model/run_siamese_matching_bilstm.py", line 16, in from duplicate_questions.data.instances.sts_instance import STSInstance File "scripts/run_model/../../duplicate_questions/data/instances/sts_instance.py", line 13, in class STSInstance(TextInstance): File "scripts/run_model/../../duplicate_questions/data/instances/sts_instance.py", line 69, in STSInstance @overrides File "/home//f.local/lib/python3.6/site-packages/overrides/overrides.py", line 70, in overrides method.name) AssertionError: No super class method found for "words"

SeekPoint avatar Feb 07 '18 06:02 SeekPoint

Sorry, are you still getting this error / need help? It's not clear to me why you closed this...

nelson-liu avatar Feb 07 '18 06:02 nelson-liu

oh, I just got the error on python3.6 but it have the workaround, namely delete all the 'overrides' statement

SeekPoint avatar Feb 07 '18 06:02 SeekPoint

interesting that this error comes up --- would you mind telling me what version of overrides you're using? thanks for reporting this

nelson-liu avatar Feb 07 '18 06:02 nelson-liu

1.9

SeekPoint avatar Feb 07 '18 06:02 SeekPoint

I see, must be python 3.6 specific since CI (on Python 3.5) passes. But you're right --- removing all the @overrides should fix it.

nelson-liu avatar Feb 07 '18 06:02 nelson-liu