Init
Basic
Pre-trained Model
Name entity
.text .label_ spacy.tokens
index: i, j words: a collection of words spaces: a collecture of booleans Matcher
[(id, start, end)] Add pattern to matcher
Two types of key: 1. regex pattern 2. label (i.e. POS, entity) Phrase matching
|
Similarity
return a similarity score 0~1 NOT for small model cosine similarity by default PipelineAdd pipeline component
Set custom attributes
set to doc, tokens, spans access property via
Extension attribute types
|
Boost up
Passing in context
Using tokenizer only
|
Cheatography
https://cheatography.com
spaCy Cheat Sheet (DRAFT) by Nuozhi
Cheat sheet for spaCy
This is a draft cheat sheet. It is a work in progress and is not finished yet.