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

Structural Design Pattern #169

Closed edm101 closed 3 years ago

edm101 commented 3 years ago

Used the Adapter structural pattern to create an adapter class for potential files which need to be read but are outside of the expected .csv format. The client is expected to enter a type, and the adapter will change the file type to it.