openai / deeptype

Code for the paper "DeepType: Multilingual Entity Linking by Neural Type System Evolution"
https://arxiv.org/abs/1802.01021
Other
648 stars 145 forks source link

total is an undefined name in evolve_type_system.py #3

Closed cclauss closed 6 years ago

cclauss commented 6 years ago

total is an undefined name in this context.

flake8 testing of https://github.com/openai/deeptype on Python 3.6.4

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./extraction/evolve_type_system.py:99:34: F821 undefined name 'total'
        return (greedy_correct / total,
                                 ^
./extraction/evolve_type_system.py:100:34: F821 undefined name 'total'
                greedy_correct / total)
                                 ^
JonathanRaiman commented 6 years ago

Typo, thanks for pointing this out :) fixed now