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

Applied iterator pattern to Response #172

Open yasserelsaid opened 3 years ago

yasserelsaid commented 3 years ago

Implemented the iterator pattern on classes Response and ResponseToIndividualQuestion.

This makes it easier to traverse the results collection in the Response and get access to the results in a sequential manner without any need to know its underlying representation.