Spaces:
Sleeping
Sleeping
Update ✨Entity Linking Application✨.py
Browse files
✨Entity Linking Application✨.py
CHANGED
@@ -97,7 +97,7 @@ async def mains(name, deep_search):
|
|
97 |
if data != {0}:
|
98 |
for ids in data:
|
99 |
titles = set()
|
100 |
-
wikipedia_disambiguation = f"https://en.wikipedia.org/w/api.php?action=query&generator=links&format=json&redirects=1&pageids={ids}&prop=pageprops&gpllimit=
|
101 |
json_id = await fetch_json(wikipedia_disambiguation, session)
|
102 |
try:
|
103 |
title = json_id.get('query').get('pages')
|
|
|
97 |
if data != {0}:
|
98 |
for ids in data:
|
99 |
titles = set()
|
100 |
+
wikipedia_disambiguation = f"https://en.wikipedia.org/w/api.php?action=query&generator=links&format=json&redirects=1&pageids={ids}&prop=pageprops&gpllimit=500&ppprop=wikibase_item"
|
101 |
json_id = await fetch_json(wikipedia_disambiguation, session)
|
102 |
try:
|
103 |
title = json_id.get('query').get('pages')
|