Atharva commited on
Commit
dd6479e
1 Parent(s): aa726b0

pipeline update

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ def get_candidates(mentions_tags):
53
  candidates.append((mention, cache[(mention, tag)]))
54
  else:
55
  cands = wikidata_search(mention, limit=3)
56
- cands = list(set(cands + google_search(mention)))
57
  if cands == []:
58
  cands = wikipedia_search(mention, limit=3)
59
  cache[(mention, tag)] = cands
 
53
  candidates.append((mention, cache[(mention, tag)]))
54
  else:
55
  cands = wikidata_search(mention, limit=3)
56
+ cands = list(set(cands + google_search(mention, 1)))
57
  if cands == []:
58
  cands = wikipedia_search(mention, limit=3)
59
  cache[(mention, tag)] = cands