Entity Relationship Modeling

Hi all,

I am new to Hugging Face and am looking to solve a problem of extracting entity relationships as a diagram/graph from company documents. For instance, Bob reports to Sally.

My first guess would be to use NER to label relationships, but is that the right track? All thoughts welcome.

Many thanks in advance,

Ari

I’m guessing you would need to combine NER with aspect analysis to understand reports to points to Sally and topic modelling/classification to understand how they go together. But I am not sure how you would go about combining the three. I believe a lot of the BERT question-answering models are able to understand and answer about these relationships, so it is happening somewhere inside those models.I guess you would need to look deeper into how those work.
Thanks & Regards,
Daryl

Thanks Daryl, I will look into the BERT Q&A.

Warm regards,

Ari