1. 学习
  2. /
  3. 课程
  4. /
  5. Advanced NLP with spaCy

Connected

练习

Writing match patterns

In this exercise, you'll practice writing more complex match patterns using different token attributes and operators. A matcher is already initialized and available as the variable matcher.

说明 1 / 共 3 个

undefined XP
  • 1
    • Write one pattern that only matches mentions of the full iOS versions: "iOS 7", "iOS 11" and "iOS 10".
  • 2
    • Write one pattern that only matches forms of "download" (tokens with the lemma "download"), followed by a token with the part-of-speech tag 'PROPN' (proper noun).
  • 3
    • Write one pattern that matches adjectives ('ADJ') followed by one or two 'NOUN's (one noun and one optional noun).