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

Second Behavioral Design Pattern (State Pattern) #171

Open SwithinTan opened 3 years ago

SwithinTan commented 3 years ago

In tfidf_workflow.py, a workflow of Term Frequency–Inverse Document Frequency (TF-IDF) model processing progress which is a part of covid_nlp, includes from language preprocessing, TF-IDF model training to TF-IDF model evaluating. Integrating all the three progresses into one workflow will simplify the work done by client and clarify the whole process of TF-IDF model training for client. During implementation, if some part was skipped, clients will be notified what the current state and the following state are.