added 'multi' key to actual operation configurations
This commit is contained in:
parent
4287f6d987
commit
9fee32cecd
@ -9,6 +9,7 @@ service:
|
|||||||
operations:
|
operations:
|
||||||
conversion:
|
conversion:
|
||||||
input:
|
input:
|
||||||
|
multi: False
|
||||||
subdir: ""
|
subdir: ""
|
||||||
extension: ORIGIN.pdf.gz
|
extension: ORIGIN.pdf.gz
|
||||||
output:
|
output:
|
||||||
@ -16,6 +17,7 @@ service:
|
|||||||
extension: json.gz
|
extension: json.gz
|
||||||
extraction:
|
extraction:
|
||||||
input:
|
input:
|
||||||
|
multi: False
|
||||||
subdir: ""
|
subdir: ""
|
||||||
extension: ORIGIN.pdf.gz
|
extension: ORIGIN.pdf.gz
|
||||||
output:
|
output:
|
||||||
@ -23,6 +25,7 @@ service:
|
|||||||
extension: json.gz
|
extension: json.gz
|
||||||
table_parsing:
|
table_parsing:
|
||||||
input:
|
input:
|
||||||
|
multi: True
|
||||||
subdir: "pages_as_images"
|
subdir: "pages_as_images"
|
||||||
extension: json.gz
|
extension: json.gz
|
||||||
output:
|
output:
|
||||||
@ -30,6 +33,7 @@ service:
|
|||||||
extension: json.gz
|
extension: json.gz
|
||||||
image_classification:
|
image_classification:
|
||||||
input:
|
input:
|
||||||
|
multi: True
|
||||||
subdir: "extracted_images"
|
subdir: "extracted_images"
|
||||||
extension: json.gz
|
extension: json.gz
|
||||||
output:
|
output:
|
||||||
@ -37,6 +41,7 @@ service:
|
|||||||
extension: IMAGE_INFO.json.gz
|
extension: IMAGE_INFO.json.gz
|
||||||
default:
|
default:
|
||||||
input:
|
input:
|
||||||
|
multi: False
|
||||||
subdir: ""
|
subdir: ""
|
||||||
extension: in.gz
|
extension: in.gz
|
||||||
output:
|
output:
|
||||||
|
|||||||
@ -14,7 +14,10 @@ def parse_args():
|
|||||||
|
|
||||||
|
|
||||||
def interpret(parsed):
|
def interpret(parsed):
|
||||||
return {**parsed, "data": str(string_to_bytes(parsed["data"]))}
|
try:
|
||||||
|
return {**parsed, "data": str(string_to_bytes(parsed["data"]))}
|
||||||
|
except KeyError:
|
||||||
|
return parsed
|
||||||
|
|
||||||
|
|
||||||
def main(fp):
|
def main(fp):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user