cloudmersive-documentai-api-client 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +24 -10
- data/cloudmersive-documentai-api-client.gemspec +3 -3
- data/docs/AdvancedExtractClassificationRequest.md +3 -0
- data/docs/AdvancedExtractFieldsRequest.md +3 -0
- data/docs/AnalyzeApi.md +58 -2
- data/docs/DocumentAdvancedClassificationResult.md +1 -0
- data/docs/DocumentPolicyRequest.md +1 -0
- data/docs/DocumentQuestionAnswerItem.md +11 -0
- data/docs/DocumentQuestionAnswersResult.md +10 -0
- data/docs/DocumentQuestionBoolean.md +9 -0
- data/docs/DocumentQuestionChoiceItem.md +9 -0
- data/docs/DocumentQuestionFreeResponse.md +9 -0
- data/docs/DocumentQuestionMultipleChoice.md +10 -0
- data/docs/DocumentQuestionsRequest.md +12 -0
- data/docs/ExtractApi.md +76 -14
- data/docs/ExtractFieldsAdvancedResponse.md +10 -0
- data/docs/FieldAdvancedValue.md +9 -0
- data/docs/FieldValue.md +2 -1
- data/docs/RunBatchJobApi.md +9 -9
- data/docs/SplitDocumentResponse.md +9 -0
- data/docs/SubDocument.md +11 -0
- data/lib/cloudmersive-documentai-api-client/api/analyze_api.rb +54 -4
- data/lib/cloudmersive-documentai-api-client/api/extract_api.rb +85 -25
- data/lib/cloudmersive-documentai-api-client/api/run_batch_job_api.rb +14 -14
- data/lib/cloudmersive-documentai-api-client/api_client.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/api_error.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/configuration.rb +3 -3
- data/lib/cloudmersive-documentai-api-client/models/advanced_extract_classification_request.rb +36 -6
- data/lib/cloudmersive-documentai-api-client/models/advanced_extract_fields_request.rb +36 -6
- data/lib/cloudmersive-documentai-api-client/models/document_advanced_classification_result.rb +16 -6
- data/lib/cloudmersive-documentai-api-client/models/document_categories.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/document_classification_result.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/document_policy_request.rb +16 -6
- data/lib/cloudmersive-documentai-api-client/models/document_policy_result.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/document_question_answer_item.rb +216 -0
- data/lib/cloudmersive-documentai-api-client/models/document_question_answers_result.rb +207 -0
- data/lib/cloudmersive-documentai-api-client/models/document_question_boolean.rb +196 -0
- data/lib/cloudmersive-documentai-api-client/models/document_question_choice_item.rb +196 -0
- data/lib/cloudmersive-documentai-api-client/models/document_question_free_response.rb +196 -0
- data/lib/cloudmersive-documentai-api-client/models/document_question_multiple_choice.rb +208 -0
- data/lib/cloudmersive-documentai-api-client/models/document_questions_request.rb +246 -0
- data/lib/cloudmersive-documentai-api-client/models/extract_barcodes_ai_response.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/extract_document_batch_job_result.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/extract_document_job_status_result.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/extract_fields_advanced_response.rb +208 -0
- data/lib/cloudmersive-documentai-api-client/models/extract_fields_and_tables_response.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/extract_fields_response.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/extract_tables_response.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/extract_text_response.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/extracted_barcode_item.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/extracted_text_page.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/field_advanced_value.rb +196 -0
- data/lib/cloudmersive-documentai-api-client/models/field_to_extract.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/field_value.rb +19 -7
- data/lib/cloudmersive-documentai-api-client/models/policy_rule.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/policy_rule_violation.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/split_document_response.rb +198 -0
- data/lib/cloudmersive-documentai-api-client/models/sub_document.rb +231 -0
- data/lib/cloudmersive-documentai-api-client/models/summarize_document_response.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/table_result.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/table_result_cell.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/models/table_result_row.rb +2 -2
- data/lib/cloudmersive-documentai-api-client/version.rb +3 -3
- data/lib/cloudmersive-documentai-api-client.rb +13 -2
- data/spec/api/analyze_api_spec.rb +15 -3
- data/spec/api/extract_api_spec.rb +28 -13
- data/spec/api/run_batch_job_api_spec.rb +8 -8
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +5 -5
- data/spec/models/advanced_extract_classification_request_spec.rb +20 -2
- data/spec/models/advanced_extract_fields_request_spec.rb +20 -2
- data/spec/models/document_advanced_classification_result_spec.rb +8 -2
- data/spec/models/document_categories_spec.rb +2 -2
- data/spec/models/document_classification_result_spec.rb +2 -2
- data/spec/models/document_policy_request_spec.rb +8 -2
- data/spec/models/document_policy_result_spec.rb +2 -2
- data/spec/models/document_question_answer_item_spec.rb +59 -0
- data/spec/models/document_question_answers_result_spec.rb +53 -0
- data/spec/models/document_question_boolean_spec.rb +47 -0
- data/spec/models/document_question_choice_item_spec.rb +47 -0
- data/spec/models/document_question_free_response_spec.rb +47 -0
- data/spec/models/document_question_multiple_choice_spec.rb +53 -0
- data/spec/models/document_questions_request_spec.rb +65 -0
- data/spec/models/extract_barcodes_ai_response_spec.rb +2 -2
- data/spec/models/extract_document_batch_job_result_spec.rb +2 -2
- data/spec/models/extract_document_job_status_result_spec.rb +2 -2
- data/spec/models/extract_fields_advanced_response_spec.rb +53 -0
- data/spec/models/extract_fields_and_tables_response_spec.rb +2 -2
- data/spec/models/extract_fields_response_spec.rb +2 -2
- data/spec/models/extract_tables_response_spec.rb +2 -2
- data/spec/models/extract_text_response_spec.rb +2 -2
- data/spec/models/extracted_barcode_item_spec.rb +2 -2
- data/spec/models/extracted_text_page_spec.rb +2 -2
- data/spec/models/field_advanced_value_spec.rb +47 -0
- data/spec/models/field_to_extract_spec.rb +2 -2
- data/spec/models/field_value_spec.rb +8 -2
- data/spec/models/policy_rule_spec.rb +2 -2
- data/spec/models/policy_rule_violation_spec.rb +2 -2
- data/spec/models/split_document_response_spec.rb +47 -0
- data/spec/models/sub_document_spec.rb +59 -0
- data/spec/models/summarize_document_response_spec.rb +2 -2
- data/spec/models/table_result_cell_spec.rb +2 -2
- data/spec/models/table_result_row_spec.rb +2 -2
- data/spec/models/table_result_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +36 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -34,9 +34,10 @@ describe 'ExtractApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for extract_all_fields_and_tables
|
|
36
36
|
# Extract All Fields and Tables of Data from a Document using AI
|
|
37
|
-
# Extract all Fields and Tables, comprised of rows and columns of data, from a document using AI. Input document formats supported include DOCX, PDF, PNG and
|
|
37
|
+
# Extract all Fields and Tables, comprised of rows and columns of data, from a document using AI. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Consumes 100 API calls per page.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [String] :recognition_mode Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
|
|
40
|
+
# @option opts [String] :preprocessing Optional: Set the level of image pre-processing to enhance accuracy. Possible values are 'Auto' (default), 'Paged', and 'Compatability'. Use 'Paged' to treat each page as a separate document for extraction (requires Advanced recognitionMode). Default is Auto.
|
|
40
41
|
# @option opts [File] :input_file Input document, or photos of a document, to extract data from
|
|
41
42
|
# @return [ExtractFieldsAndTablesResponse]
|
|
42
43
|
describe 'extract_all_fields_and_tables test' do
|
|
@@ -47,7 +48,7 @@ describe 'ExtractApi' do
|
|
|
47
48
|
|
|
48
49
|
# unit tests for extract_barcodes
|
|
49
50
|
# Extract Barcodes of from a Document using AI
|
|
50
|
-
# Extract all barcodes from a document using AI. Input document formats supported include DOCX, PDF, PNG and
|
|
51
|
+
# Extract all barcodes from a document using AI. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG, HEIC and WEBP. Consumes 100 API calls per page.
|
|
51
52
|
# @param [Hash] opts the optional parameters
|
|
52
53
|
# @option opts [String] :recognition_mode Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
|
|
53
54
|
# @option opts [File] :input_file Input document, or photos of a document, to extract data from
|
|
@@ -60,7 +61,7 @@ describe 'ExtractApi' do
|
|
|
60
61
|
|
|
61
62
|
# unit tests for extract_classification
|
|
62
63
|
# Extract Classification or Category from a Document using AI
|
|
63
|
-
# Extract Classification or Category (e.g. Invoice, Receipt, Tax Form, or Form 1040, Form 1040 EZ, etc.) from a document using AI. Input document formats supported include DOCX, PDF, PNG and
|
|
64
|
+
# Extract Classification or Category (e.g. Invoice, Receipt, Tax Form, or Form 1040, Form 1040 EZ, etc.) from a document using AI. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Consumes 100 API calls per page.
|
|
64
65
|
# @param [Hash] opts the optional parameters
|
|
65
66
|
# @option opts [String] :categories Desired classification to extract
|
|
66
67
|
# @option opts [String] :recognition_mode Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
|
|
@@ -74,7 +75,7 @@ describe 'ExtractApi' do
|
|
|
74
75
|
|
|
75
76
|
# unit tests for extract_classification_advanced
|
|
76
77
|
# Extract Classification or Category from a Document using Advanced AI
|
|
77
|
-
# Extract Classification or Category (e.g. Invoice, Receipt, Tax Form, or Form 1040, Form 1040 EZ, etc.) from a document using Advanced AI. Input document formats supported include DOCX, PDF, PNG and
|
|
78
|
+
# Extract Classification or Category (e.g. Invoice, Receipt, Tax Form, or Form 1040, Form 1040 EZ, etc.) from a document using Advanced AI. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Consumes 100 API calls per page.
|
|
78
79
|
# @param [Hash] opts the optional parameters
|
|
79
80
|
# @option opts [String] :recognition_mode Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
|
|
80
81
|
# @option opts [AdvancedExtractClassificationRequest] :body Input request to perform the classification on
|
|
@@ -87,7 +88,7 @@ describe 'ExtractApi' do
|
|
|
87
88
|
|
|
88
89
|
# unit tests for extract_fields
|
|
89
90
|
# Extract Field Values from a Document using AI
|
|
90
|
-
# Extract Field Values (e.g. Invoice Number, Invoice Date, Business Card Phone Number, etc.) from a document using AI. Input document formats supported include DOCX, PDF, PNG and
|
|
91
|
+
# Extract Field Values (e.g. Invoice Number, Invoice Date, Business Card Phone Number, etc.) from a document using AI. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Consumes 100 API calls per page.
|
|
91
92
|
# @param [Hash] opts the optional parameters
|
|
92
93
|
# @option opts [String] :field_names Desired fields to extract, comma separated
|
|
93
94
|
# @option opts [String] :recognition_mode Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
|
|
@@ -101,22 +102,36 @@ describe 'ExtractApi' do
|
|
|
101
102
|
|
|
102
103
|
# unit tests for extract_fields_advanced
|
|
103
104
|
# Extract Field Values from a Document using Advanced AI
|
|
104
|
-
# Extract Field Values (e.g. Invoice Number, Invoice Date, Business Card Phone Number, etc.) from a document using Advanced AI. Input document formats supported include DOCX, PDF, PNG and
|
|
105
|
+
# Extract Field Values (e.g. Invoice Number, Invoice Date, Business Card Phone Number, etc.) from a document using Advanced AI. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Consumes 100 API calls per page.
|
|
105
106
|
# @param [Hash] opts the optional parameters
|
|
106
107
|
# @option opts [String] :recognition_mode Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
|
|
107
108
|
# @option opts [AdvancedExtractFieldsRequest] :body Input request, including document file as byte array, and information on which fields to extract
|
|
108
|
-
# @return [
|
|
109
|
+
# @return [ExtractFieldsAdvancedResponse]
|
|
109
110
|
describe 'extract_fields_advanced test' do
|
|
110
111
|
it 'should work' do
|
|
111
112
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
112
113
|
end
|
|
113
114
|
end
|
|
114
115
|
|
|
116
|
+
# unit tests for extract_split
|
|
117
|
+
# Intelligently Split a Combined Document into Sub-Documents using AI
|
|
118
|
+
# Analyzes a document containing multiple sub-documents (such as a scanned batch of ID cards, forms, or mixed documents) and intelligently splits it into separate sub-documents. Uses AI to detect document boundaries based on visual content, headers, names, and document types. Returns the page ranges and PDF bytes for each identified sub-document. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Consumes 100 API calls per page.
|
|
119
|
+
# @param [Hash] opts the optional parameters
|
|
120
|
+
# @option opts [String] :recognition_mode Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
|
|
121
|
+
# @option opts [File] :input_file Input document containing multiple sub-documents to split
|
|
122
|
+
# @return [SplitDocumentResponse]
|
|
123
|
+
describe 'extract_split test' do
|
|
124
|
+
it 'should work' do
|
|
125
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
115
129
|
# unit tests for extract_summary
|
|
116
130
|
# Extract Summary from a Document using AI
|
|
117
|
-
# Creates a 1 paragraph summary of the input document using Artificial Intelligence. Input document formats supported include DOCX, PDF, PNG and
|
|
131
|
+
# Creates a 1 paragraph summary of the input document using Artificial Intelligence. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Consumes 100 API calls per page.
|
|
118
132
|
# @param [Hash] opts the optional parameters
|
|
119
133
|
# @option opts [String] :recognition_mode Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
|
|
134
|
+
# @option opts [String] :language Optional; Three-letter language code (ISO 639) for the summary. Default is ENG. Possible language codes are: AAR,ABK,ACE,ACH,ADA,ADY,AFA,AFH,AFR,AIN,AKA,AKK,ALB,ALE,ALG,ALT,AMH,ANG,ANP,APA,ARA,ARC,ARG,ARM,ARN,ARP,ART,ARW,ASM,AST,ATH,AUS,AVA,AVE,AWA,AYM,AZE,BAD,BAI,BAK,BAL,BAM,BAN,BAQ,BAS,BAT,BEJ,BEL,BEM,BEN,BER,BHO,BIH,BIK,BIN,BIS,BLA,BNT,BOD,BOS,BRA,BRE,BTK,BUA,BUG,BUL,BUR,BYN,CAD,CAI,CAR,CAT,CAU,CEB,CEL,CES,CHA,CHB,CHE,CHG,CHI,CHK,CHM,CHN,CHO,CHP,CHR,CHU,CHV,CHY,CMC,CNR,COP,COR,COS,CPE,CPF,CPP,CRE,CRH,CRP,CSB,CUS,CYM,CZE,DAK,DAN,DAR,DAY,DEL,DEN,DEU,DGR,DIN,DIV,DOI,DRA,DSB,DUA,DUM,DUT,DYU,DZO,EFI,EGY,EKA,ELL,ELX,ENG,ENM,EPO,EST,EUS,EWE,EWO,FAN,FAO,FAS,FAT,FIJ,FIL,FIN,FIU,FON,FRA,FRE,FRM,FRO,FRR,FRS,FRY,FUL,FUR,GAA,GAY,GBA,GEM,GEO,GER,GEZ,GIL,GLA,GLE,GLG,GLV,GMH,GOH,GON,GOR,GOT,GRB,GRC,GRE,GRN,GSW,GUJ,GWI,HAI,HAT,HAU,HAW,HEB,HER,HIL,HIM,HIN,HIT,HMN,HMO,HRV,HSB,HUN,HUP,HYE,IBA,IBO,ICE,IDO,III,IJO,IKU,ILE,ILO,INA,INC,IND,INE,INH,IPK,IRA,IRO,ISL,ITA,JAV,JBO,JPN,JPR,JRB,KAA,KAB,KAC,KAL,KAM,KAN,KAR,KAS,KAT,KAU,KAW,KAZ,KBD,KHA,KHI,KHM,KHO,KIK,KIN,KIR,KMB,KOK,KOM,KON,KOR,KOS,KPE,KRC,KRL,KRO,KRU,KUA,KUM,KUR,KUT,LAD,LAH,LAM,LAO,LAT,LAV,LEZ,LIM,LIN,LIT,LOL,LOZ,LTZ,LUA,LUB,LUG,LUI,LUN,LUO,LUS,MAC,MAD,MAG,MAH,MAI,MAK,MAL,MAN,MAO,MAP,MAR,MAS,MAY,MDF,MDR,MEN,MGA,MIC,MIN,MIS,MKD,MKH,MLG,MLT,MNC,MNI,MNO,MOH,MON,MOS,MRI,MSA,MUL,MUN,MUS,MWL,MWR,MYA,MYN,MYV,NAH,NAI,NAP,NAU,NAV,NBL,NDE,NDO,NDS,NEP,NEW,NIA,NIC,NIU,NLD,NNO,NOB,NOG,NON,NOR,NQO,NSO,NUB,NWC,NYA,NYM,NYN,NYO,NZI,OCI,OJI,ORI,ORM,OSA,OSS,OTA,OTO,PAA,PAG,PAL,PAM,PAN,PAP,PAU,PEO,PER,PHI,PHN,PLI,POL,PON,POR,PRA,PRO,PUS,QUE,RAJ,RAP,RAR,ROA,ROH,ROM,RON,RUM,RUN,RUP,RUS,SAD,SAG,SAH,SAI,SAL,SAM,SAN,SAS,SAT,SCN,SCO,SEL,SEM,SGA,SGN,SHN,SID,SIN,SIO,SIT,SLA,SLK,SLO,SLV,SMA,SME,SMI,SMJ,SMN,SMO,SMS,SNA,SND,SNK,SOG,SOM,SON,SOT,SPA,SQI,SRD,SRN,SRP,SRR,SSA,SSW,SUK,SUN,SUS,SUX,SWA,SWE,SYC,SYR,TAH,TAI,TAM,TAT,TEL,TEM,TER,TET,TGK,TGL,THA,TIB,TIG,TIR,TIV,TKL,TLH,TLI,TMH,TOG,TON,TPI,TSI,TSN,TSO,TUK,TUM,TUP,TUR,TUT,TVL,TWI,TYV,UDM,UGA,UIG,UKR,UMB,UND,URD,UZB,VAI,VEN,VIE,VOL,VOT,WAK,WAL,WAR,WAS,WEL,WEN,WLN,WOL,XAL,XHO,YAO,YAP,YID,YOR,YPK,ZAP,ZBL,ZEN,ZGH,ZHA,ZHO,ZND,ZUL,ZUN,ZXX,ZZA.
|
|
120
135
|
# @option opts [File] :input_file Input document, or photos of a document, to extract data from
|
|
121
136
|
# @return [SummarizeDocumentResponse]
|
|
122
137
|
describe 'extract_summary test' do
|
|
@@ -127,7 +142,7 @@ describe 'ExtractApi' do
|
|
|
127
142
|
|
|
128
143
|
# unit tests for extract_tables
|
|
129
144
|
# Extract Tables of Data from a Document using AI
|
|
130
|
-
# Extract Tables, comprised of rows and columns of data, from a document using AI. Input document formats supported include DOCX, PDF, PNG and
|
|
145
|
+
# Extract Tables, comprised of rows and columns of data, from a document using AI. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Consumeds 100 API calls per page.
|
|
131
146
|
# @param [Hash] opts the optional parameters
|
|
132
147
|
# @option opts [String] :recognition_mode Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
|
|
133
148
|
# @option opts [File] :input_file Input document, or photos of a document, to extract data from
|
|
@@ -140,9 +155,9 @@ describe 'ExtractApi' do
|
|
|
140
155
|
|
|
141
156
|
# unit tests for extract_text
|
|
142
157
|
# Extract Text from a Document using AI
|
|
143
|
-
# Extract raw text from a document using AI. Input document formats supported include DOCX, PDF, PNG and
|
|
158
|
+
# Extract raw text from a document using AI. Input document formats supported include DOCX, PDF, XLSX, PPTX, EML, MSG, JPG, PNG and WEBP. Supports a wide range of languages. Consumes 100 API calls per page.
|
|
144
159
|
# @param [Hash] opts the optional parameters
|
|
145
|
-
# @option opts [String] :recognition_mode Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
|
|
160
|
+
# @option opts [String] :recognition_mode Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images. Set to Deterministic to directly extract text from digital documents without using AI.
|
|
146
161
|
# @option opts [File] :input_file Input document, or photos of a document, to extract data from
|
|
147
162
|
# @return [ExtractTextResponse]
|
|
148
163
|
describe 'extract_text test' do
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -34,7 +34,7 @@ describe 'RunBatchJobApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for extract_all_fields_and_tables_from_document_batch_job
|
|
36
36
|
# Extract All Fields and Tables of Data from a Document using AI as a Batch Job
|
|
37
|
-
# Creates an async batch job for processing a large document as an AI batch job. Extract all Fields and Tables, comprised of rows and columns of data, from a document using AI. Input document formats supported include DOCX, PDF, PNG and JPG.
|
|
37
|
+
# Creates an async batch job for processing a large document as an AI batch job. Extract all Fields and Tables, comprised of rows and columns of data, from a document using AI. Input document formats supported include DOCX, PDF, PNG and JPG. Requires Managed Instance or Private Cloud deployment.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [String] :recognition_mode Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
|
|
40
40
|
# @option opts [File] :input_file Input document, or photos of a document, to extract data from
|
|
@@ -47,7 +47,7 @@ describe 'RunBatchJobApi' do
|
|
|
47
47
|
|
|
48
48
|
# unit tests for extract_classification_from_document_batch_job
|
|
49
49
|
# Extract Classification or Category from a Document using AI as a Batch Job
|
|
50
|
-
# Creates an async batch job for processing a large document as an AI batch job. Extract Classification or Category (e.g. Invoice, Receipt, Tax Form, or Form 1040, Form 1040 EZ, etc.) from a document using AI. Input document formats supported include DOCX, PDF, PNG and JPG.
|
|
50
|
+
# Creates an async batch job for processing a large document as an AI batch job. Extract Classification or Category (e.g. Invoice, Receipt, Tax Form, or Form 1040, Form 1040 EZ, etc.) from a document using AI. Input document formats supported include DOCX, PDF, PNG and JPG. Requires Managed Instance or Private Cloud deployment.
|
|
51
51
|
# @param [Hash] opts the optional parameters
|
|
52
52
|
# @option opts [String] :categories Desired classification to extract
|
|
53
53
|
# @option opts [String] :recognition_mode Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
|
|
@@ -61,10 +61,10 @@ describe 'RunBatchJobApi' do
|
|
|
61
61
|
|
|
62
62
|
# unit tests for extract_fields_from_document_advanced_batch_job
|
|
63
63
|
# Extract Field Values from a Document using Advanced AI as a Batch Job
|
|
64
|
-
# Creates an async batch job for processing a large document as an AI batch job. Extract Field Values (e.g. Invoice Number, Invoice Date, Business Card Phone Number, etc.) from a document using Advanced AI. Input document formats supported include DOCX, PDF, PNG and JPG.
|
|
64
|
+
# Creates an async batch job for processing a large document as an AI batch job. Extract Field Values (e.g. Invoice Number, Invoice Date, Business Card Phone Number, etc.) from a document using Advanced AI. Input document formats supported include DOCX, PDF, PNG and JPG. Requires Managed Instance or Private Cloud deployment.
|
|
65
65
|
# @param [Hash] opts the optional parameters
|
|
66
66
|
# @option opts [String] :recognition_mode Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
|
|
67
|
-
# @option opts [AdvancedExtractFieldsRequest] :body
|
|
67
|
+
# @option opts [AdvancedExtractFieldsRequest] :body Input document and parameters
|
|
68
68
|
# @return [ExtractDocumentBatchJobResult]
|
|
69
69
|
describe 'extract_fields_from_document_advanced_batch_job test' do
|
|
70
70
|
it 'should work' do
|
|
@@ -74,7 +74,7 @@ describe 'RunBatchJobApi' do
|
|
|
74
74
|
|
|
75
75
|
# unit tests for extract_text_from_document_batch_job
|
|
76
76
|
# Extract Text from a Document using AI as a Batch Job
|
|
77
|
-
# Creates an async batch job for processing a large document as an AI batch job. Input document formats supported include DOCX, PDF, PNG and JPG. Supports a wide range of languages.
|
|
77
|
+
# Creates an async batch job for processing a large document as an AI batch job. Input document formats supported include DOCX, PDF, PNG and JPG. Supports a wide range of languages. Requires Managed Instance or Private Cloud deployment.
|
|
78
78
|
# @param [Hash] opts the optional parameters
|
|
79
79
|
# @option opts [String] :recognition_mode Optional; Recognition mode - Advanced (default) provides the highest accuracy but slower speed, while Normal provides faster response but lower accuracy for low quality images
|
|
80
80
|
# @option opts [File] :input_file Input document, or photos of a document, to extract data from
|
|
@@ -89,7 +89,7 @@ describe 'RunBatchJobApi' do
|
|
|
89
89
|
# Get the status and result of an Extract Document Batch Job
|
|
90
90
|
# Returns the result of the Async Job - possible states can be STARTED or COMPLETED. This API is only available for Cloudmersive Managed Instance and Private Cloud deployments.
|
|
91
91
|
# @param [Hash] opts the optional parameters
|
|
92
|
-
# @option opts [String] :async_job_id
|
|
92
|
+
# @option opts [String] :async_job_id Job ID for the batch job to get the status of
|
|
93
93
|
# @return [ExtractDocumentJobStatusResult]
|
|
94
94
|
describe 'get_async_job_status test' do
|
|
95
95
|
it 'should work' do
|
data/spec/api_client_spec.rb
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
data/spec/configuration_spec.rb
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -18,7 +18,7 @@ describe CloudmersiveDocumentaiApiClient::Configuration do
|
|
|
18
18
|
before(:each) do
|
|
19
19
|
# uncomment below to setup host and base_path
|
|
20
20
|
# require 'URI'
|
|
21
|
-
# uri = URI.parse("https://
|
|
21
|
+
# uri = URI.parse("https://api.cloudmersive.com")
|
|
22
22
|
# CloudmersiveDocumentaiApiClient.configure do |c|
|
|
23
23
|
# c.host = uri.host
|
|
24
24
|
# c.base_path = uri.path
|
|
@@ -28,14 +28,14 @@ describe CloudmersiveDocumentaiApiClient::Configuration do
|
|
|
28
28
|
describe '#base_url' do
|
|
29
29
|
it 'should have the default value' do
|
|
30
30
|
# uncomment below to test default value of the base path
|
|
31
|
-
# expect(config.base_url).to eq("https://
|
|
31
|
+
# expect(config.base_url).to eq("https://api.cloudmersive.com")
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
it 'should remove trailing slashes' do
|
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
|
36
36
|
config.base_path = base_path
|
|
37
37
|
# uncomment below to test trailing slashes
|
|
38
|
-
# expect(config.base_url).to eq("https://
|
|
38
|
+
# expect(config.base_url).to eq("https://api.cloudmersive.com")
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -44,10 +44,28 @@ describe 'AdvancedExtractClassificationRequest' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
describe 'test attribute "preprocessing"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "result_cross_check"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
47
59
|
describe 'test attribute "maximum_pages_processed"' do
|
|
48
60
|
it 'should work' do
|
|
49
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
62
|
end
|
|
51
63
|
end
|
|
52
64
|
|
|
65
|
+
describe 'test attribute "rotate_image_degrees"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
53
71
|
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -50,4 +50,22 @@ describe 'AdvancedExtractFieldsRequest' do
|
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
+
describe 'test attribute "preprocessing"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
describe 'test attribute "result_cross_check"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
describe 'test attribute "rotate_image_degrees"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
53
71
|
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -44,4 +44,10 @@ describe 'DocumentAdvancedClassificationResult' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
describe 'test attribute "confidence_score"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
47
53
|
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -44,4 +44,10 @@ describe 'DocumentPolicyRequest' do
|
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
describe 'test attribute "recognition_mode"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
47
53
|
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Document AI API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
|
-
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.14
|
|
10
10
|
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Document AI API
|
|
3
|
+
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersiveDocumentaiApiClient::DocumentQuestionAnswerItem
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'DocumentQuestionAnswerItem' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveDocumentaiApiClient::DocumentQuestionAnswerItem.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of DocumentQuestionAnswerItem' do
|
|
31
|
+
it 'should create an instance of DocumentQuestionAnswerItem' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveDocumentaiApiClient::DocumentQuestionAnswerItem)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "question_id"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "answer_value"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "answer_rationale"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "confidence_score"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Document AI API
|
|
3
|
+
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersiveDocumentaiApiClient::DocumentQuestionAnswersResult
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'DocumentQuestionAnswersResult' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveDocumentaiApiClient::DocumentQuestionAnswersResult.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of DocumentQuestionAnswersResult' do
|
|
31
|
+
it 'should create an instance of DocumentQuestionAnswersResult' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveDocumentaiApiClient::DocumentQuestionAnswersResult)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "successful"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "confidence_score"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "answer_results"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Document AI API
|
|
3
|
+
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersiveDocumentaiApiClient::DocumentQuestionBoolean
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'DocumentQuestionBoolean' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveDocumentaiApiClient::DocumentQuestionBoolean.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of DocumentQuestionBoolean' do
|
|
31
|
+
it 'should create an instance of DocumentQuestionBoolean' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveDocumentaiApiClient::DocumentQuestionBoolean)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "question_id"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "question_text"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Document AI API
|
|
3
|
+
|
|
4
|
+
#Extract structured data including named fields, tables, barcodes, classifications, and summaries from common document formats, scanned documents, and photos of documents using AI. Also supports handwriting and low quality photos and scans, as well as digital document input. Supports a wide range of languages, and is able to analyze and infer semantic structure from the visual layout for documents.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: v1
|
|
7
|
+
Contact: support@cloudmersive.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersiveDocumentaiApiClient::DocumentQuestionChoiceItem
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'DocumentQuestionChoiceItem' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveDocumentaiApiClient::DocumentQuestionChoiceItem.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of DocumentQuestionChoiceItem' do
|
|
31
|
+
it 'should create an instance of DocumentQuestionChoiceItem' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveDocumentaiApiClient::DocumentQuestionChoiceItem)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "choice_id"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "choice_text"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
end
|