Closed j-min closed 7 years ago
Plus, could you please explain why head final rule
works?
@j-min
- what lchild and rchild mean in parsing tree
- why one node can have only two children.
let's take a look, https://github.com/dsindex/syntree. you can find out how the constituent parse tree looks like.
a constituent parse tree must be a binary tree. there are inner nodes and leafs. every inner nodes have a left and a right child. that is a constraint to build a parse tree by Korean Constituent Grammar.
if you have the Sejong Corpus which represents constituents, you could find the rule.
Plus, could you please explain why head final rule works?
in Korean language,
eojeol
can only have one head(or governor).
in other word, only one parent edge from it.
this is the head-final rule.
if you want to find one's head in a constituent parse tree,
I got it! Thank you for explanation :)
In c2d.py,
find_gov
determines 'HEAD' of CoNLL-U format to each node with 4 rules including head final rule, whose children are determined inmake_edge
.Could you please explain the usage of
lchild
andrchild
? It seems like one node can only have two children, and child node is attached to parent node aslchild
by default. But I couldn't understandlchild
andrchild
mean in parsing treeAre they leftmost child and rightmost child surrounding inner children?