pycognaize.common.lazy_dict.LazyDocumentDict
- class LazyDocumentDict(doc_path, data_path)[source]
Bases:
Mapping
Contains documents included in the snapshot
- Parameters:
doc_path (
str
)data_path (
str
)
Methods
Attributes
Path of the document's OCR and page images
Path of the document's JSON
document_filename
- property data_path: str
Path of the document’s OCR and page images
- property doc_path: str
Path of the document’s JSON
- get(k[, d]) D[k] if k in D, else d. d defaults to None.
- items() a set-like object providing a view on D's items
- keys() a set-like object providing a view on D's keys
- values() an object providing a view on D's values