anujkarn commited on
Commit
3545be6
·
1 Parent(s): 0417cc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -21,6 +21,7 @@ from SPARQLWrapper import SPARQLWrapper, JSON, N3
21
  from fuzzywuzzy import process, fuzz
22
  from st_aggrid import GridOptionsBuilder, AgGrid, GridUpdateMode, DataReturnMode
23
  from transformers import pipeline
 
24
 
25
  sparql = SPARQLWrapper('https://dbpedia.org/sparql')
26
 
@@ -50,8 +51,8 @@ Non-organised entities with entiities.json
50
  self.entity_df = pd.DataFrame(columns=["entity", "description"])
51
  # Load the spacy model
52
 
53
- # self.nlp = spacy.load('en_core_web_lg')
54
- self.nlp = pipeline(model="spacy/en_core_web_lg")
55
 
56
  # Parse the text
57
  self.entity_df = self.get_who_what_where_when()
 
21
  from fuzzywuzzy import process, fuzz
22
  from st_aggrid import GridOptionsBuilder, AgGrid, GridUpdateMode, DataReturnMode
23
  from transformers import pipeline
24
+ import en_core_web_lg
25
 
26
  sparql = SPARQLWrapper('https://dbpedia.org/sparql')
27
 
 
51
  self.entity_df = pd.DataFrame(columns=["entity", "description"])
52
  # Load the spacy model
53
 
54
+ self.nlp = en_core_web_lg.load()
55
+ # self.nlp = pipeline(model="spacy/en_core_web_lg")
56
 
57
  # Parse the text
58
  self.entity_df = self.get_who_what_where_when()