def get_ddlib_feats(span, context, idxs):
if span.stable_id not in unary_ddlib_feats:<EOL><INDENT>unary_ddlib_feats[span.stable_id] = set()<EOL>for seq_feat in _get_seq_features(context, idxs):<EOL><INDENT>unary_ddlib_feats[span.stable_id].add(seq_feat)<EOL><DEDENT>for window_feat in _get_window_features(context, idxs):<EOL><INDENT>unary_ddlib_feats[span.stable_id].add(window_feat)<EOL><DEDENT><DEDENT>for f in unary_ddlib_feats[span.stable_id]:<EOL><INDENT>yield f<EOL><DEDENT>
Minimalist port of generic mention features from ddlib