Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Can't put passages to mongodb at DSTC11Track5 Evaluator #459

Open
vkehfdl1 opened this issue Jan 6, 2024 · 1 comment
Open

Can't put passages to mongodb at DSTC11Track5 Evaluator #459

vkehfdl1 opened this issue Jan 6, 2024 · 1 comment
Labels
Benchmark This issue is about benchmark. bug Something isn't working DB This issue is about DB module. help wanted Extra attention is needed

Comments

@vkehfdl1
Copy link
Contributor

vkehfdl1 commented Jan 6, 2024

DSTC11Track5 Evaluator contains np.array metadata object in Passage's metadata.
It occurs pymongo error, so I can't put passages with metadata

  def __make_passages(self, row):
      if row['doc_type'] == 'review':
          content = row['review_sentence']
          metadata_etc = {
              'domain': row['domain'],
              'entity_id': row['entity_id'],
              'entity_name': row['entity_name'],
              'doc_type': row['doc_type'],
              **row['review_metadata'] # This is the problem
          }

Should we fix Evaluator? or should we fix mongoDB???

@vkehfdl1 vkehfdl1 added bug Something isn't working help wanted Extra attention is needed DB This issue is about DB module. Benchmark This issue is about benchmark. labels Jan 6, 2024
@vkehfdl1
Copy link
Contributor Author

vkehfdl1 commented Jan 6, 2024

Check this out @bwook00 @minsing-jin

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Benchmark This issue is about benchmark. bug Something isn't working DB This issue is about DB module. help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant