Revert "try annotate next fragment in template maker when best_match is false"

This reverts commit 32e8dc852e5cdde4dfe8535525ce48f20d8eae12.
promote the _attrs2dict and _labelled to public
let annotate_fragment return an boolean