Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,9 @@ service = pd.read_csv('cust_service_data.csv')
|
|
47 |
"""# Entity Extraction"""
|
48 |
|
49 |
# extract entities, label, label definition from natural language questions and append to dataframe
|
50 |
-
|
|
|
|
|
51 |
def EntityExtraction(text:str):
|
52 |
# print(text)
|
53 |
entities = []
|
|
|
47 |
"""# Entity Extraction"""
|
48 |
|
49 |
# extract entities, label, label definition from natural language questions and append to dataframe
|
50 |
+
|
51 |
+
pip install https://huggingface.co/spacy/en_core_web_sm/resolve/main/en_core_web_sm-any-py3-none-any.whl
|
52 |
+
nlp = spacy.load("en_core_web_sm")
|
53 |
def EntityExtraction(text:str):
|
54 |
# print(text)
|
55 |
entities = []
|