Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/explosion/spaCy
/ add_label
Method
add_label
spacy/pipeline/tok2vec.py:214–215 ·
view source on GitHub ↗
(self, label)
Source
from the content-addressed store, hash-verified
212
self.model.initialize(X=doc_sample)
213
214
def
add_label(self, label):
215
raise
NotImplementedError
216
217
218
class
Tok2VecListener(Model):
Callers
15
test_init_labels
Function · 0.45
test_get_labels_from_model
Function · 0.45
nlp
Function · 0.45
test_evaluate_textcat_multilabel
Function · 0.45
test_evaluate_multiple_textcat_final
Function · 0.45
test_evaluate_multiple_textcat_separate
Function · 0.45
test_language_source_and_vectors
Function · 0.45
apply_transition_sequence
Function · 0.45
test_issue2179
Function · 0.45
test_issue2800
Function · 0.45
test_issue3209
Function · 0.45
test_labels_from_BILUO
Function · 0.45
Calls
no outgoing calls
Tested by
15
test_init_labels
Function · 0.36
test_get_labels_from_model
Function · 0.36
nlp
Function · 0.36
test_evaluate_textcat_multilabel
Function · 0.36
test_evaluate_multiple_textcat_final
Function · 0.36
test_evaluate_multiple_textcat_separate
Function · 0.36
test_language_source_and_vectors
Function · 0.36
test_issue2179
Function · 0.36
test_issue2800
Function · 0.36
test_issue3209
Function · 0.36
test_labels_from_BILUO
Function · 0.36
test_issue4267
Function · 0.36