From cffdffbe7c9e777faaf6b098d3be18086a045b6a Mon Sep 17 00:00:00 2001 From: Theo Bouwman Date: Mon, 2 Jan 2023 16:04:39 +0100 Subject: [PATCH 1/2] Change import package name to docqa Import package name changed because this is changed to docqa --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 63b4531..0c57c95 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ that makes it simple to ask questions of documents and (2) a `Document` abstract to feed into the pipeline. ```python ->>> from docquery import document, pipeline +>>> from docqa import document, pipeline >>> p = pipeline('document-question-answering') >>> doc = document.load_document("/path/to/document.pdf") >>> for q in ["What is the invoice number?", "What is the invoice total?"]: From ab7c14478cde23992fb5264c1bac72690c1da1d5 Mon Sep 17 00:00:00 2001 From: Theo Bouwman Date: Mon, 2 Jan 2023 16:07:00 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0c57c95..1eca369 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ to feed into the pipeline. ```python >>> from docqa import document, pipeline ->>> p = pipeline('document-question-answering') +>>> p = pipeline.get_pipeline() >>> doc = document.load_document("/path/to/document.pdf") >>> for q in ["What is the invoice number?", "What is the invoice total?"]: ... print(q, p(question=q, **doc.context))