Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Mrinank-Bhowmick/python-beginner-projects
/ originalText
Function
originalText
projects/PDF_Reader/PDF_Reader.py:29–33 ·
view source on GitHub ↗
(docs)
Source
from the content-addressed store, hash-verified
27
28
29
def
originalText(docs):
30
text = str(docs)
31
regex = r
"(Document)|(page_content=)|(metadata={'source':)|('page': \d})\)|(\\n)"
32
text = re.sub(regex,
""
, text)
33
return
text
34
35
36
text = originalText(docs)
Callers
1
PDF_Reader.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected