primeqa.ir.util.corpus_reader.Passage#
- class primeqa.ir.util.corpus_reader.Passage(pid: str, title: str, text: str)#
Bases:
object
Methods
from_dict
Useful for json serialization :return: dictionary representation of the passage
Attributes
pid
title
text
- to_dict()#
Useful for json serialization :return: dictionary representation of the passage