Skip to content
Snippets Groups Projects
Unverified Commit f6ad23eb authored by Rana Banerjee's avatar Rana Banerjee Committed by GitHub
Browse files

Return the object along with the subject when extracting the keywords (#11326)

parent 8f8d4635
Branches
Tags
No related merge requests found
......@@ -173,6 +173,10 @@ class KGTableRetriever(BaseRetriever):
keyword = rel_text.split(",")[0]
if keyword:
keywords.append(keyword.strip("(\"'"))
# Return the Object as well
keyword = rel_text.split(",")[2]
if keyword:
keywords.append(keyword.strip(" ()\"'"))
return keywords
def _retrieve(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment