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