The Knowledge Graph Conference Icon
The Knowledge Graph Conference
  • 馃彔Home
  • 馃搮Events
  • 馃懁Members
  • 馃數Announcements
  • 馃數Ask
  • 馃數Ask The Ontologists
  • 馃數Events
  • 馃數Jobs
  • 馃數Promotions
  • 馃數Share
Powered by Tightknit
Ask
Ask

Extracting Entities and Relationships from Text: My Recent Experience

Avatar of Tomaz BratanicTomaz Bratanic
路Feb 16, 2021 05:43 PM

https://towardsdatascience.com/from-text-to-knowledge-the-information-extraction-pipeline-b65e7e30273e I did something similar when I extracted entities and relationship from text just a few days ago

馃檶4

18 comments

路 Sorted by Oldest
    • Avatar of daria
      daria
      路

      I've just renewed my Medium subscription - will read this! If you like, feel free to elaborate on the Q&A board 馃檪

    • Avatar of Ellie Y.
      Ellie Y.
      路

      great thinking, Daria! if you have the link to the question on the Q&A board handy, feel free to share it here with Tomaz

    • Avatar of daria
      daria
      路

      Here! https://answers.knowledgegraph.tech/t/recommended-resources-reproducible-examples-for-automated-ontology-development-from-natural-language-text/5055

      馃挴3
    • Avatar of Sophia S.
      Sophia S.
      路

      Thank you! Replied in the thread 馃槈

      馃憤1
      馃檶1
    • Avatar of Ellie Y.
      Ellie Y.
      路

      great follow-on question!!

    • Avatar of Eszter S.
      Eszter S.
      路

      Hi Tomaz Bratanic Thank you for this write up! It is wonderful and I have downloaded and started playing with your project. Perhaps I am misunderstanding, but after creating and running the docker image, I come to

      2021-02-18 02:09:15,548 - werkzeug - INFO -  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)

      Yet, when visiting the url, I see Missing text parameter. Can you by any chance see what I am misunderstanding?

    • Avatar of Tomaz Bratanic
      Tomaz Bratanic
      路

      try localhost:5000?text=Example text, maybe add Elon Musk

    • Avatar of Tomaz Bratanic
      Tomaz Bratanic
      路

      it's Flask on the backend

    • Avatar of Tomaz Bratanic
      Tomaz Bratanic
      路

      Add something like Elon Musk is father to Bitcoin 馃檪

    • Avatar of Tomaz Bratanic
      Tomaz Bratanic
      路

      because the entity needs to exist on Wikipedia

    • Avatar of Eszter S.
      Eszter S.
      路

      Yay! So with `http://localhost:5000/?text=Example%20Text%20Elon%20Musk%20is%20father%20to%20bitcoin` I am getting {"entities":[{"label":"Person","title":"Elon Musk","wikiId":"Q317521"}],"relations":[]}

      馃檶馃徏1
    • Avatar of Tomaz Bratanic
      Tomaz Bratanic
      路

      鉂わ笍

    • Avatar of Tomaz Bratanic
      Tomaz Bratanic
      路

      there are also relation_threshold and entity_threshold parameters exposed that you can play around

    • Avatar of Eszter S.
      Eszter S.
      路

      Nice! Could you give me a quick working example?

    • Avatar of Tomaz Bratanic
      Tomaz Bratanic
      路

      http://localhost:5000/?entities_threshold=2.0&relation_threshold=0.5&text=Example%20Text%20Elon%20Musk%20is%20father%20to%20bitcoin