In the previous part, we discussed how you can take advantage of spaCy’s rule-based matcher engines, using both pattern rules and documents. In this part, you’ll see some examples of the former, based on using linguistic features, such as syntactic dependency labels and simple and extended part of speech tags. Determining Manually a Sequence of Words Satisfying a Pattern Rule...
Tag: Matcher
Using spaCy to Find Sequences of Words Based on Pattern Rules – Part 1
spaCy’s rule-based matcher engines are much powerful than just using regular expressions, since those engines allow you to find not only particular words in a submitted text, but also discover their relationships. spaCy provides you with the ability to match sequences of tokens based on both pattern rules and documents. In the first case, you use spaCy’s Matcher object. For...