raspberryice / gen-arg

Code for paper "Document-Level Argument Extraction by Conditional Generation". NAACL 21'
MIT License
119 stars 30 forks source link

The head word F1 #16

Closed hlee-top closed 2 years ago

hlee-top commented 2 years ago

Hi, I have a question about head word F1, is head word the first word of the argument?

raspberryice commented 2 years ago

Hi, The head word is not the first word, it is the syntactic head of the argument. In the code you can find a function called find_head which uses the spacy library to do parsing and then extract the head.