Spacy Regex "SyntaxError: invalid syntax"
Hi everyone I am executing this code in Spacy to match with Regex, but I get an error: import spacy from spacy.matcher import Matcher nlp = spacy.load("en_core_web_md") doc1 = nlp("Hello hello hello, how are you?") doc2 = nlp("Hello, how are you?") doc3 = nlp("How are you?") pattern = [{"LOWER": {"IN": ["hello", "hi", "hallo"]},"OP": "*",{"IS_PUNCT": True}}]… Read More Spacy Regex "SyntaxError: invalid syntax"