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
 
        except:
            pass
        if text and len(text) > PDF_MIN_LENGTH:
            self.save_extract(text, extract_method='pdfminer')
            return to_unicode(text)
        except:
            pass
        if text and len(text) > PDF_MIN_LENGTH:
            self.save_extract(text, extract_method='pypdf2')
            return to_unicode(text)
        except CalledProcessError:
            pass
        if text and len(text) > PDF_MIN_LENGTH:
            self.save_extract(text, extract_method='tesseract')
            return to_unicode(text)