feat: schema_version 3 with DE/EN field descriptions
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s
Some checks failed
CI / Linux x86_64 (Forgejo) (push) Failing after 2s
Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
6156cd5bd8
commit
331a97d3c6
1 changed files with 27 additions and 11 deletions
38
module.yaml
38
module.yaml
|
|
@ -1,4 +1,4 @@
|
||||||
schema_version: 2
|
schema_version: 3
|
||||||
provider: fai
|
provider: fai
|
||||||
name: text-extract
|
name: text-extract
|
||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
|
|
@ -10,19 +10,35 @@ provides:
|
||||||
|
|
||||||
# Inputs the invoke function accepts.
|
# Inputs the invoke function accepts.
|
||||||
inputs:
|
inputs:
|
||||||
# The document to extract text from. Supported MIME types:
|
document:
|
||||||
# application/pdf
|
type: bytes
|
||||||
# application/x-pdf
|
description:
|
||||||
# application/vnd.openxmlformats-officedocument.wordprocessingml.document
|
en: |
|
||||||
document: bytes
|
The document to extract text from. Supported MIME types:
|
||||||
|
application/pdf
|
||||||
|
application/x-pdf
|
||||||
|
application/vnd.openxmlformats-officedocument.wordprocessingml.document
|
||||||
|
de: |
|
||||||
|
Das Dokument, aus dem Text extrahiert werden soll. Unterstützte MIME-Typen:
|
||||||
|
application/pdf
|
||||||
|
application/x-pdf
|
||||||
|
application/vnd.openxmlformats-officedocument.wordprocessingml.document
|
||||||
|
|
||||||
# Outputs produced.
|
# Outputs produced.
|
||||||
outputs:
|
outputs:
|
||||||
# JSON-encoded ExtractedDocument:
|
extracted:
|
||||||
# { engine, engine_version, pages: [{number, text, confidence?, bbox?}] }
|
type: json
|
||||||
# confidence and bbox are reserved for a future service-mode variant
|
description:
|
||||||
# (pdfium / mupdf via host services). v0.1.0 omits them.
|
en: |
|
||||||
extracted: json
|
JSON-encoded ExtractedDocument:
|
||||||
|
{ engine, engine_version, pages: [{number, text, confidence?, bbox?}] }
|
||||||
|
confidence and bbox are reserved for a future service-mode variant
|
||||||
|
(pdfium / mupdf via host services). v0.1.0 omits them.
|
||||||
|
de: |
|
||||||
|
JSON-codiertes ExtractedDocument:
|
||||||
|
{ engine, engine_version, pages: [{number, text, confidence?, bbox?}] }
|
||||||
|
confidence und bbox sind für eine künftige Service-Mode-Variante reserviert
|
||||||
|
(pdfium / mupdf über Host-Services). v0.1.0 liefert sie nicht.
|
||||||
|
|
||||||
# Permissions required.
|
# Permissions required.
|
||||||
#
|
#
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue