title: Text extraction with SpaCy python library Jupyter
body: <p>I am using <strong>Jupyter Notebook</strong> for text mining and data Processing, after extracting my text from a pdf file i used <strong>SpaCy library</strong> to extract all the proper nouns processed but the problem is that sometimes it gives me the same name twice.
  this is the pdf file that i'm using :
  <strong><a href="https://drive.google.com/file/d/16LicTfEuQQRwVwTyt2bo1QfWS5vapC0c/view?usp=sharing" rel="nofollow noreferrer">https://drive.google.com/file/d/16LicTfEuQQRwVwTyt2bo1QfWS5vapC0c/view?usp=sharing</a></strong></p>
  <p>============Code=====================</p>
  <pre><code>from spacy.matcher import Matcher
  matcher = Matcher(nlp.vocab)
  pattern1 = [{'POS': 'PROPN'}, {'POS': 'PROPN'}] 
  pattern2 = [{'POS': 'PROPN'}, {'POS': 'PROPN'},{'POS': 'PROPN'}]
  matcher.add('FULL_NAME', [pattern1])
  matcher.add('FULL_NAME', [pattern2])
  matches = matcher(doc)
  for match_id, start, end in matches:
      print(doc[start:end])
  </code></pre>
  <p>===============<strong>Output</strong>=====================</p>
  <p><strong>Sarra Ben</strong></p>
  <p><strong>Sarra Ben Moussa</strong></p>
  <p><strong>Ben Moussa</strong></p>
  <p><strong>Ghofrane Challouf</strong></p>
  <p><strong>Malika Ben</strong></p>
  <p><strong>Malika Ben Slima</strong></p>
  <p><strong>Ben Slima</strong></p>