My initial thought was to just include the comments directly into the label_dict structure with the key comment_NN, keeping track of the NN with the self.comment_num attribute. Its not clear to me how to access the comments in the Visitor at this point. The fact that comments can appear at different "levels" of the grammar may complicate this.
My initial thought was to just include the comments directly into the label_dict structure with the key
comment_NN
, keeping track of theNN
with theself.comment_num
attribute. Its not clear to me how to access the comments in the Visitor at this point. The fact that comments can appear at different "levels" of the grammar may complicate this.