Natural Language Processing with spaCy
Azadeh Mobasher
Principal data scientist
spaCy
's text processing pipelines to extract linguistic features:
spaCy
's classes such as Doc
, Token
and Span
and predict semantic similarities using word vectors:spaCy
's Matcher
and PhraseMatcher
:
matcher = Matcher(nlp.vocab)
pattern = [{"LOWER": "good"}, {"LOWER": {"IN": ["morning", "evening"]}}]
matcher.add("morning_greeting", [pattern])
matcher = PhraseMatcher(nlp.vocab, attr = "LOWER")
patterns = [nlp.make_doc(term) for term in terms]
matcher.add("InvestmentTerms", patterns)
spaCy
models and use them at inference time
Natural Language Processing with spaCy