Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/n/e/neurotrends-HEAD/neurotrends/model/document.py   neurotrends(Download)
from neurotrends.config import mongo
 
from .config import EXTRACT_SAVE_DIRS, PDF_MIN_LENGTH
from .utils import make_oid, mkdir_p, to_unicode
 
    def save_extract(self, text, save=True, **kwargs):
 
        path = EXTRACT_SAVE_DIRS[self.document_type]
        if not os.path.exists(path):
            mkdir_p(path)