sentence1: rules , which can be hand crafted or learned by a system , are commonly created by looking at the context around already known entities , such as surface word patterns and dependency patterns .
sentence2: rules are typically defined by creating patterns around the entities , such as lexico-syntactic surface word patterns and dependency tree patterns .