struct-learning-with-flow
struct-learning-with-flow copied to clipboard
Function tags on children's label
Hi, in the line below, it seems that function tags separated with = doesn't get removed from the children's label. That is, when the child has label NP=2
, this will still return NP=2
instead of just NP
. This would affect the head-finding rule (e.g., wsj_2308.mrg
). Any reason why?
https://github.com/jxhe/struct-learning-with-flow/blob/282d547a912598360cffe448304d8c281879bcfd/nlp_commons/dep/dwsj.py#L69