deepset-ai / COVID-QA

API & Webapp to answer questions about COVID-19. Using NLP (Question Answering) and trusted data sources.
Apache License 2.0
344 stars 121 forks source link

Creational #157

Open ShahramNasir opened 3 years ago

ShahramNasir commented 3 years ago

Singleton pattern has been applied to eval.py. We can see that we used metaclasses and source code help was used from https://stackoverflow.com/questions/6760685/creating-a-singleton-in-python.

References to eval_question_similarity were also updated to ourSingleton.eval_question_similarity for work with the singleton pattern