@property<EOL><INDENT>def patterns(self):<DEDENT>
all_patterns = []<EOL>for label, patterns in self.token_patterns.items():<EOL><INDENT>for pattern in patterns:<EOL><INDENT>all_patterns.append({"<STR_LIT:label>": label, "<STR_LIT>": pattern})<EOL><DEDENT><DEDENT>for label, patterns in self.phrase_patterns.items():<EOL><INDENT>for pattern in patterns:<EOL><INDENT>all_patterns.append({"<STR_LIT:label>": label, "<STR_LIT>": pattern.text})<EOL><DEDENT><DEDENT>return all_patterns<EOL>
Get all patterns that were added to the entity ruler.

        RETURNS (list): The original patterns, one dictionary per pattern.

        DOCS: https://spacy.io/api/entityruler#patterns