walidamamou / relation_extraction_transformer

35 stars 17 forks source link

Meaning of HEAD vs CHILD on training data #6

Open Ibrokhimsadikov opened 2 years ago

Ibrokhimsadikov commented 2 years ago

Hi @walidamamou ,

I wonder what is the meaning of head and child on your training data, is it morphological meaning as it says here in Spacy doc:

"spaCy uses the terms head and child to describe the words connected by a single arc in the dependency tree. "

or it means in terms of how two words can be related to each other like .

Like if I say: Ventricular Rate is 85 BPM.

Test_name entity here is: Ventricular Rate Test_result entity here is: 85 BMP

which one is here head and child?

Thank you for your support

Please help

fernandonjardim commented 2 years ago

Hi @Ibrokhimsadikov ! If you look on Spacy's and Prodigy's docs, the Child is always the one where you start your arc and the Head, the one to your arc.

For instance in this sentence Autonomous Cars are..... Autonomous is the child of Car (head), as without Car, Autonomous makes no sense, so the head of the sentence is Car.

Ibrokhimsadikov commented 2 years ago

So can we say that head and child are more of like a morphological notion rather than semantic meaning of relationship description

fernandonjardim commented 2 years ago

Not sure, just know how it works ahha

Fernando Jardim +351 960 306 376 +55 11 9 9173 1734 (whatsapp only)

On Tue, Dec 14, 2021 at 6:05 PM Ibrokhimsadikov @.***> wrote:

So can we say that head and child are more of like a morphological notion rather than semantic meaning of relationship description

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/walidamamou/relation_extraction_transformer/issues/6#issuecomment-993840834, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHRL2ONO6XAYBMU6PRNDNWTUQ6BNDANCNFSM5ERU3MGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.