Skip to content

Commit

Permalink
tests should pass now
Browse files Browse the repository at this point in the history
  • Loading branch information
FredTheNoob committed Nov 23, 2023
1 parent d0e88e1 commit 708dbeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/EntityLinker.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def entitylinkerFunc(entities, threshold=80):
linked_entities = []
db_path = "./Database/DB.db"
for entity in entities:
if entity.type is "Literal":
if entity.type == "Literal":
linked_entities.append(EntityLinked(entity, ""))
continue
# Use the Read function to get all entities starting with the same name
Expand Down
2 changes: 1 addition & 1 deletion lib/EntityLinked.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ def getEntityJSON(self):
"type": self.type,
"startIndex": self.startIndex,
"endIndex": self.endIndex,
"iri": ("knox-kb01.srv.aau.dk/" + self.iri) if self.type is "Entity" else None
"iri": ("knox-kb01.srv.aau.dk/" + self.iri) if self.type == "Entity" else None
}

0 comments on commit 708dbeb

Please sign in to comment.