title: How to find named entity relationship
body: <p>I was doing named entity relationship from the text of a book. I have done the Recognition using &quot;spaCy&quot; using its module &quot;en_core_web_sm&quot; as:</p>
  <pre><code>import en_core_web_sm
  nlp = en_core_web_sm.load()
  def NamedEntityRecognition(Text):
      doc = nlp(Text)
      list1 = []
      for ent in doc.ents:
          if ent.label_=='PERSON':
              list1.append((ent.text, ent.label_))
      return list1
  </code></pre>
  <p>I only wanted to find the PERSONS from it. Now I wish to find the relationship between different persons (How one person is related to another person, like &quot;is a father of&quot;, &quot;is a brother of&quot; kind of relationships) but I don't have any idea about how to do it.</p>