1. 학습
  2. /
  3. 강의
  4. /
  5. Advanced NLP with spaCy

Connected

연습 문제

Debugging patterns (1)

Why does this pattern not match the tokens "Silicon Valley" in the doc?

pattern = [{'LOWER': 'silicon'}, {'TEXT': ' '}, {'LOWER': 'valley'}]
doc = nlp("Can Silicon Valley workers rein in big tech from within?")

You can try it out in your IPython shell. The matcher with the added pattern and the doc are already created.

지침

50 XP

가능한 답변