This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_entities(sent): | |
"""get_entities is the fork of https://gist.github.com/prateekjoshi565/241aee30cc95aaf54a3533c2ec0f0b40#file-kg_extract_entities-py, added some comments""" | |
## chunk 1 | |
ent1 = "" | |
ent2 = "" | |
prv_tok_dep = "" # dependency tag of previous token in the sentence | |
prv_tok_text = "" # previous token in the sentence | |
prefix = "" |