def compile_entity_feature_generator():
BASIC_ATTRIBS_REL = ["<STR_LIT>", "<STR_LIT>"]<EOL>m = Mention(<NUM_LIT:0>)<EOL>temps = [<EOL>[Indicator(m, a) for a in BASIC_ATTRIBS_REL],<EOL>Indicator(m, "<STR_LIT>"),<EOL>Ngrams(Parents(m, <NUM_LIT:3>), "<STR_LIT>", (<NUM_LIT:1>, <NUM_LIT:3>)),<EOL>Ngrams(Children(m), "<STR_LIT>", (<NUM_LIT:1>, <NUM_LIT:3>)),<EOL>[LeftNgrams(LeftSiblings(m), a) for a in BASIC_ATTRIBS_REL],<EOL>[RightNgrams(RightSiblings(m), a) for a in BASIC_ATTRIBS_REL],<EOL>]<EOL>return Compile(temps).apply_mention<EOL>
Given optional arguments, returns a generator function which accepts an xml
root and a list of indexes for a mention, and will generate relation
features for this entity.