MCPcopy Create free account
hub / github.com/debjitpaul/refiner / get_doc

Function get_doc

data_preprocessing/utils.py:67–72  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

65 return data
66
67def get_doc(text):
68 if text not in doc_cache:
69 doc = nlp(text)
70 doc_cache[text] = doc
71
72 return doc_cache[text]
73
74def get_sents(text, by_sentence=None, use_cache=True):
75 if not use_cache or text not in sent_cache:

Callers 1

get_wordsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected