deepset-ai / COVID-QA

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

PR_1 tfidf_client train #121

Open SwithinTan opened 3 years ago

SwithinTan commented 3 years ago

Two classesTfidfTrainer() and TfidfEvaluator() 's __init__()are changed to receive objects from outside the class instead of initializing objects inside class. For example, for TfidfEvaluator(), when to initialize its object in main(), a object of preprocessor will be initialized first and passed into TfidfEvaluator()'s __init()__ as a parameter, as the following shows. And the similar changes are made to classesTfidfTrainer() as well.