Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -846,7 +846,7 @@ def create_interface():
|
|
846 |
gr.HTML("""
|
847 |
<details style="margin: 20px 0; padding: 10px; background-color: #f8f9fa; border-radius: 8px; border: 1px solid #ddd;">
|
848 |
<summary style="cursor: pointer; font-weight: bold; padding: 5px; color: #1976d2;">
|
849 |
-
ℹ️ Entity Type Definitions
|
850 |
</summary>
|
851 |
<div style="margin-top: 10px; padding: 10px;">
|
852 |
<dl style="margin: 0; font-size: 14px;">
|
@@ -935,16 +935,16 @@ def create_interface():
|
|
935 |
gr.Examples(
|
936 |
examples=[
|
937 |
[
|
938 |
-
"
|
939 |
-
["PER", "ORG", "LOC", "DATE"],
|
940 |
-
"
|
941 |
0.3,
|
942 |
"entities_spacy_en_core_web_trf"
|
943 |
],
|
944 |
[
|
945 |
-
"
|
946 |
-
["PER", "
|
947 |
-
"
|
948 |
0.3,
|
949 |
"entities_gliner_knowledgator/modern-gliner-bi-large-v1.0"
|
950 |
]
|
@@ -987,6 +987,16 @@ def create_interface():
|
|
987 |
</li>
|
988 |
</ul>
|
989 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
990 |
""")
|
991 |
|
992 |
return demo
|
|
|
846 |
gr.HTML("""
|
847 |
<details style="margin: 20px 0; padding: 10px; background-color: #f8f9fa; border-radius: 8px; border: 1px solid #ddd;">
|
848 |
<summary style="cursor: pointer; font-weight: bold; padding: 5px; color: #1976d2;">
|
849 |
+
ℹ️ Entity Type Definitions
|
850 |
</summary>
|
851 |
<div style="margin-top: 10px; padding: 10px;">
|
852 |
<dl style="margin: 0; font-size: 14px;">
|
|
|
935 |
gr.Examples(
|
936 |
examples=[
|
937 |
[
|
938 |
+
"On June 6, 1944, Allied forces launched Operation Overlord, the invasion of Normandy. General Dwight D. Eisenhower commanded the operation, while Field Marshal Bernard Montgomery led ground forces. The BBC broadcast coded messages to the French Resistance, including the famous line 'The long sobs of autumn violins.'",
|
939 |
+
["PER", "ORG", "LOC", "DATE", "EVENT"],
|
940 |
+
"military operations, military ranks, historical battles",
|
941 |
0.3,
|
942 |
"entities_spacy_en_core_web_trf"
|
943 |
],
|
944 |
[
|
945 |
+
"In Jane Austen's 'Pride and Prejudice', Elizabeth Bennet first meets Mr. Darcy at the Meryton assembly. The novel, published in 1813, explores themes of marriage and social class in Regency England. Austen wrote to her sister Cassandra about the manuscript while staying at Chawton Cottage.",
|
946 |
+
["PER", "LOC", "DATE", "Work of Art"],
|
947 |
+
"literary themes, relationships, literary periods",
|
948 |
0.3,
|
949 |
"entities_gliner_knowledgator/modern-gliner-bi-large-v1.0"
|
950 |
]
|
|
|
987 |
</li>
|
988 |
</ul>
|
989 |
</div>
|
990 |
+
|
991 |
+
<br>
|
992 |
+
|
993 |
+
<div style="text-align: center; margin-top: 20px; padding: 15px; font-size: 14px; color: #666;">
|
994 |
+
This NER Explorer Tool was created as an output of the
|
995 |
+
<a href="https://digitalscholarship.web.ox.ac.uk/" target="_blank" style="color: #1976d2;">
|
996 |
+
Digital Scholarship at Oxford (DiSc)
|
997 |
+
</a>
|
998 |
+
funded research project: 'Extracting Keywords from Crowdsourced Collections'
|
999 |
+
</div>
|
1000 |
""")
|
1001 |
|
1002 |
return demo
|