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
No related branches found
No related tags found
No related merge requests found
...@@ -173,6 +173,10 @@ class KGTableRetriever(BaseRetriever): ...@@ -173,6 +173,10 @@ class KGTableRetriever(BaseRetriever):
keyword = rel_text.split(",")[0] keyword = rel_text.split(",")[0]
if keyword: if keyword:
keywords.append(keyword.strip("(\"'")) keywords.append(keyword.strip("(\"'"))
# Return the Object as well
keyword = rel_text.split(",")[2]
if keyword:
keywords.append(keyword.strip(" ()\"'"))
return keywords return keywords
def _retrieve( def _retrieve(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment