fortytw0 / needfinder

Cheap and Fast - But is it better?
MIT License
1 stars 0 forks source link

Some module is looping 100K times when you import it #13

Closed AbeHandler closed 2 years ago

AbeHandler commented 2 years ago

If you run py -m src.bm25 there is some counter that loops 100K times. There seems to be something that should be hidden behind a if __name__ == '__main__' but is not

Screen Shot 2022-06-29 at 6 54 26 PM
fortytw0 commented 2 years ago

This is the module that loops over the corpus, it reads a maximum of 1e5 lines. This is working as intended!