[Python] entity extraction and coreferencing

Discussão em 'Python' iniciado por Stack, Março 19, 2025.

  1. Stack

    Stack Membro Participativo

    I have played with python spacy and textacy.

    Here is my example text, for intance from a conversation:

    text = "I send you a foto of me and my children. Mary is my daughter. Mary was born in 2015. Bob is the son born in 2007."


    I would like to set a context, so that "I" , "me", "my" etc. means "Steffen", and "you" etc. means "Hugo".

    And I would like to extract triplets like:

    • "Steffen" "HAS_CHILD" "Mary"
    • "Mary" "BORN_IN" "2005"
    • "Steffen" "HAS_CHILD" "Bob"
    • "Bob" "BORN_IN" "2007"
    • "Steffen" "SENDS_FOTO" "Hugo"

    Are there ways to achieve these?

    Continue reading...

Compartilhe esta Página