MatthiasC commited on
Commit
25d9773
1 Parent(s): c8aa906

Change the way in which spacy is loaded

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -4,6 +4,7 @@ from typing import AnyStr
4
 
5
  import itertools
6
  import streamlit as st
 
7
 
8
  import torch.nn.parameter
9
  from bs4 import BeautifulSoup
@@ -39,7 +40,10 @@ def get_sentence_embedding_model():
39
 
40
  @st.experimental_singleton
41
  def get_spacy():
42
- nlp = spacy.load('en_core_web_lg')
 
 
 
43
  return nlp
44
 
45
 
 
4
 
5
  import itertools
6
  import streamlit as st
7
+ import en_core_web_lg
8
 
9
  import torch.nn.parameter
10
  from bs4 import BeautifulSoup
 
40
 
41
  @st.experimental_singleton
42
  def get_spacy():
43
+ #nlp = spacy.load('en_core_web_lg')
44
+ print("START")
45
+ nlp = en_core_web_lg.load()
46
+ print("END")
47
  return nlp
48
 
49