refactor: Extract extractor list to extractor module
This commit is contained in:
parent
629932a5e8
commit
a51205954c
3 changed files with 10 additions and 9 deletions
|
|
@ -9,7 +9,6 @@ import papis.logging
|
|||
from papis.document import Document
|
||||
|
||||
from papis_extract.annotation import Annotation
|
||||
from papis_extract.extractors.pdf import PdfExtractor
|
||||
|
||||
logger = papis.logging.get_logger(__name__)
|
||||
|
||||
|
|
@ -51,8 +50,3 @@ def start(
|
|||
logger.warning("Did not find suitable file for document: " f"{desc}")
|
||||
|
||||
return annotations
|
||||
|
||||
|
||||
extractors: dict[str, Extractor] = {
|
||||
"pdf": PdfExtractor(),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue