mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-02 19:30:19 +03:00
update example 5 header
This commit is contained in:
parent
92630928df
commit
719d8b7c44
|
@ -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.pipe(docs)`](/api/language#pipe) with a batch, instead of calling
|
||||||
`nlp(doc)` with a single document.
|
`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:
|
To write a [`task`](#tasks), you need to implement two functions:
|
||||||
`generate_prompts` that takes a list of [`Doc`](/api/doc) objects and transforms
|
`generate_prompts` that takes a list of [`Doc`](/api/doc) objects and transforms
|
||||||
|
|
Loading…
Reference in New Issue
Block a user