Update website/docs/api/spancategorizer.mdx

This commit is contained in:
Adriane Boyd 2023-03-08 10:59:24 +01:00 committed by GitHub
parent f53d945b2d
commit 2713890ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,11 +68,11 @@ architectures and their arguments and hyperparameters.
> "spans_key": "labeled_spans",
> "model": DEFAULT_SPANCAT_SINGLELABEL_MODEL,
> "suggester": {"@misc": "spacy.ngram_suggester.v1", "sizes": [1, 2, 3]},
> # Additional spancat_exclusive parameters
> # Additional spancat_singlelabel parameters
> "negative_weight": 0.8,
> "allow_overlap": True,
> }
> nlp.add_pipe("spancat_exclusive", config=config)
> nlp.add_pipe("spancat_singlelabel", config=config)
> ```
| Setting | Description |