This commit is contained in:
14
docs/snippets/python/plugins/extractor_registration.md
Normal file
14
docs/snippets/python/plugins/extractor_registration.md
Normal file
@@ -0,0 +1,14 @@
|
||||
```python title="Python"
|
||||
from kreuzberg import register_document_extractor
|
||||
|
||||
class CustomExtractor:
|
||||
def name(self) -> str:
|
||||
return "custom"
|
||||
|
||||
def version(self) -> str:
|
||||
return "1.0.0"
|
||||
|
||||
extractor = CustomExtractor()
|
||||
register_document_extractor(extractor)
|
||||
print("Extractor registered")
|
||||
```
|
||||
Reference in New Issue
Block a user