Shivam098 commited on
Commit
a828ab6
1 Parent(s): 56bc884

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -6,6 +6,13 @@ import json
6
 
7
  # Initialize spaCy
8
  nlp = spacy.load("en_core_web_md", disable=["ner"])
 
 
 
 
 
 
 
9
  nlp.add_pipe(
10
  "concise_concepts",
11
  config={
@@ -19,13 +26,6 @@ nlp.add_pipe(
19
  "topn": (100,500,300)
20
  },
21
  )
22
- # Define sample data
23
- data = {
24
- "fruit": ["apple", "pear", "orange"],
25
- "vegetable": ["broccoli", "spinach", "tomato"],
26
- "meat": ['beef', 'pork', 'turkey', 'duck']
27
- }
28
-
29
  # Streamlit app
30
  st.title('Named Entity Recognition with spaCy')
31
 
 
6
 
7
  # Initialize spaCy
8
  nlp = spacy.load("en_core_web_md", disable=["ner"])
9
+
10
+ # Define sample data
11
+ data = {
12
+ "fruit": ["apple", "pear", "orange"],
13
+ "vegetable": ["broccoli", "spinach", "tomato"],
14
+ "meat": ['beef', 'pork', 'turkey', 'duck']
15
+ }
16
  nlp.add_pipe(
17
  "concise_concepts",
18
  config={
 
26
  "topn": (100,500,300)
27
  },
28
  )
 
 
 
 
 
 
 
29
  # Streamlit app
30
  st.title('Named Entity Recognition with spaCy')
31