Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Albert-Ma/PROP
/ add_document
Method
add_document
prop/preprocessing_data.py:35–37 ·
view source on GitHub ↗
(self, doc_id, document)
Source
from the content-addressed store, hash-verified
33
self.docids = []
34
35
def
add_document(self, doc_id, document):
36
self.document_shelf[str(doc_id)] = document
37
self.docids.append(doc_id)
38
39
def
__len__(self):
40
return
len(self.docids)
Callers
1
preprocessing_data.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected