Skip to content

Commit

Permalink
Merge pull request #7 from CogComp/dev
Browse files Browse the repository at this point in the history
eliminate early returnin mapped types
  • Loading branch information
Slash0BZ authored Aug 29, 2018
2 parents f88a193 + b39c92d commit 70520e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zoe_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def get_mapped_types_of_title(self, title):
if " " in title:
title = title.replace(" ", "_")
if regex.match(r'\d{4}', title):
return set()
self.freebase_map[title] = ""
if title.lower() == title:
concat = ""
for token in title.split("_"):
Expand Down

0 comments on commit 70520e1

Please sign in to comment.