update example 5 header

This commit is contained in:
Kabir Khan 2023-08-01 11:58:12 -07:00
parent 92630928df
commit 719d8b7c44

View File

@ -331,7 +331,7 @@ Note that for efficient usage of resources, typically you would use
[`nlp.pipe(docs)`](/api/language#pipe) with a batch, instead of calling
`nlp(doc)` with a single document.
### Example 4: Implement your own custom task {id="example-4"}
### Example 5: Implement your own custom task {id="example-5"}
To write a [`task`](#tasks), you need to implement two functions:
`generate_prompts` that takes a list of [`Doc`](/api/doc) objects and transforms