Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Evaluation Script bugfix - Initalize Annotated Corpus as list [resolves
#70] **Changes in `__main__.py`:** * `load_annotated_corpus()` -> `load_annotated_corpus(return_iter=False)`. **Reason:** * Commit 29e3b56 adds return iteator functionality to `load_annotated_corpus`. Default is set `True`. * Returned iterator is consumed by `for doc in tqdm(anno, unit=" doc", desc=f"Calculate n-dcg score for {name}"):`. * After it is consumed it needs to be reset so that other summarizers can use `anno` but they did not. * As a result only first summarizer in the list was evaluated and rest did not see a test data since the iterator was consumed. * `anno` is now a list when the argument is set to `False`. Consume it as much as you wish.
- Loading branch information