Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ignore occurrence loading in big universes
  • Loading branch information
cxchu committed Apr 27, 2020
1 parent 5dd42a4 commit a077a7f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions typeConsolidation/TypeConsolidation.py
Expand Up @@ -222,11 +222,13 @@ def optimization(mention, candidateTypes, type2score, disjointContr, hierarchica
print('\t\tloading occurrence.....')
sys.stdout.flush()
pearsonValues = {}

big_universes = {'camphalfbloodroleplay', 'fallout', 'enmarveldatabase',
'forgottenrealms', 'harrypotter', 'leagueoflegends', 'lego',
'psychology', 'starwars', 'villains', 'wowwiki', 'xenoblade'}
for univ in universes:
print('\t\t' + univ)
sys.stdout.flush
if univ == 'wowwiki' or univ == "enmarveldatabase" or univ == "starwars" or univ == "harrypotter":
sys.stdout.flush()
if univ in big_universes:
continue;
occurrenceFile = basedir + univ + "/type-occurrence"
occurrences = {}
Expand Down

0 comments on commit a077a7f

Please sign in to comment.