As such, we first consider a simple retrieval-based model that uses the command as a search query to retrieve the most relevant element based on its TF-IDF score.
each element is represented as a bag-of-tokens computed by (1) tokenizing and stemming its text content, and (2) tokenizing the attributes (id, class, placeholder, label, tooltip, aria-text, name, src, href) at punctuation marks and camel-case boundaries.