def load_model(modelname, add_sentencizer=False):
loading_start = time.time()<EOL>nlp = spacy.load(modelname)<EOL>if add_sentencizer:<EOL><INDENT>nlp.add_pipe(nlp.create_pipe('<STR_LIT>'))<EOL><DEDENT>loading_end = time.time()<EOL>loading_time = loading_end - loading_start<EOL>if add_sentencizer:<EOL><INDENT>return nlp, loading_time, modelname + '<STR_LIT>'<EOL><DEDENT>return nlp, loading_time, modelname<EOL>
Load a specific spaCy model