Class: Xberg::ExtractedDocument

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeExtractedDocument

Returns a new instance of ExtractedDocument.

Parameters:



990
# File 'sig/types.rbs', line 990

def initialize: (?content: String, ?mime_type: String, ?metadata: Metadata, ?extraction_method: ExtractionMethod, ?tables: Array[Table], ?counts: DocumentCounts, ?detected_languages: Array[String], ?chunks: Array[Chunk], ?images: Array[ExtractedImage], ?pages: Array[PageContent], ?elements: Array[Element], ?djot_content: DjotContent, ?ocr_elements: Array[OcrElement], ?document: DocumentStructure, ?extracted_keywords: Array[Keyword], ?quality_score: Float, ?processing_warnings: Array[ProcessingWarning], ?annotations: Array[PdfAnnotation], ?children: Array[ArchiveEntry], ?uris: Array[ExtractedUri], ?revisions: Array[DocumentRevision], ?structured_output: json_value, ?code_intelligence: json_value, ?llm_usage: Array[LlmUsage], ?entities: Array[Entity], ?summary: DocumentSummary, ?extraction_confidence: ExtractionConfidence, ?translation: Translation, ?page_classifications: Array[PageClassification], ?redaction_report: RedactionReport, ?formulas: Array[Formula], ?form_fields: Array[PdfFormField], ?formatted_content: String) -> void

Instance Attribute Details

#annotationsArray[PdfAnnotation]?

Returns the value of attribute annotations.

Returns:



973
974
975
# File 'sig/types.rbs', line 973

def annotations
  @annotations
end

#childrenArray[ArchiveEntry]?

Returns the value of attribute children.

Returns:



974
975
976
# File 'sig/types.rbs', line 974

def children
  @children
end

#chunksArray[Chunk]?

Returns the value of attribute chunks.

Returns:



963
964
965
# File 'sig/types.rbs', line 963

def chunks
  @chunks
end

#code_intelligencejson_value?

Returns the value of attribute code_intelligence.

Returns:

  • (json_value, nil)


978
979
980
# File 'sig/types.rbs', line 978

def code_intelligence
  @code_intelligence
end

#contentString?

Returns the value of attribute content.

Returns:

  • (String, nil)


956
957
958
# File 'sig/types.rbs', line 956

def content
  @content
end

#countsDocumentCounts?

Returns the value of attribute counts.

Returns:



961
962
963
# File 'sig/types.rbs', line 961

def counts
  @counts
end

#detected_languagesArray[String]?

Returns the value of attribute detected_languages.

Returns:

  • (Array[String], nil)


962
963
964
# File 'sig/types.rbs', line 962

def detected_languages
  @detected_languages
end

#djot_contentDjotContent?

Returns the value of attribute djot_content.

Returns:



967
968
969
# File 'sig/types.rbs', line 967

def djot_content
  @djot_content
end

#documentDocumentStructure?

Returns the value of attribute document.

Returns:



969
970
971
# File 'sig/types.rbs', line 969

def document
  @document
end

#elementsArray[Element]?

Returns the value of attribute elements.

Returns:



966
967
968
# File 'sig/types.rbs', line 966

def elements
  @elements
end

#entitiesArray[Entity]?

Returns the value of attribute entities.

Returns:



980
981
982
# File 'sig/types.rbs', line 980

def entities
  @entities
end

#extracted_keywordsArray[Keyword]?

Returns the value of attribute extracted_keywords.

Returns:



970
971
972
# File 'sig/types.rbs', line 970

def extracted_keywords
  @extracted_keywords
end

#extraction_confidenceExtractionConfidence?

Returns the value of attribute extraction_confidence.

Returns:



982
983
984
# File 'sig/types.rbs', line 982

def extraction_confidence
  @extraction_confidence
end

#extraction_methodExtractionMethod?

Returns the value of attribute extraction_method.

Returns:



959
960
961
# File 'sig/types.rbs', line 959

def extraction_method
  @extraction_method
end

#form_fieldsArray[PdfFormField]?

Returns the value of attribute form_fields.

Returns:



987
988
989
# File 'sig/types.rbs', line 987

def form_fields
  @form_fields
end

#formatted_contentString?

Returns the value of attribute formatted_content.

Returns:

  • (String, nil)


988
989
990
# File 'sig/types.rbs', line 988

def formatted_content
  @formatted_content
end

#formulasArray[Formula]?

Returns the value of attribute formulas.

Returns:



986
987
988
# File 'sig/types.rbs', line 986

def formulas
  @formulas
end

#imagesArray[ExtractedImage]?

Returns the value of attribute images.

Returns:



964
965
966
# File 'sig/types.rbs', line 964

def images
  @images
end

#llm_usageArray[LlmUsage]?

Returns the value of attribute llm_usage.

Returns:



979
980
981
# File 'sig/types.rbs', line 979

def llm_usage
  @llm_usage
end

#metadataMetadata?

Returns the value of attribute metadata.

Returns:



958
959
960
# File 'sig/types.rbs', line 958

def 
  @metadata
end

#mime_typeString?

Returns the value of attribute mime_type.

Returns:

  • (String, nil)


957
958
959
# File 'sig/types.rbs', line 957

def mime_type
  @mime_type
end

#ocr_elementsArray[OcrElement]?

Returns the value of attribute ocr_elements.

Returns:



968
969
970
# File 'sig/types.rbs', line 968

def ocr_elements
  @ocr_elements
end

#page_classificationsArray[PageClassification]?

Returns the value of attribute page_classifications.

Returns:



984
985
986
# File 'sig/types.rbs', line 984

def page_classifications
  @page_classifications
end

#pagesArray[PageContent]?

Returns the value of attribute pages.

Returns:



965
966
967
# File 'sig/types.rbs', line 965

def pages
  @pages
end

#processing_warningsArray[ProcessingWarning]?

Returns the value of attribute processing_warnings.

Returns:



972
973
974
# File 'sig/types.rbs', line 972

def processing_warnings
  @processing_warnings
end

#quality_scoreFloat?

Returns the value of attribute quality_score.

Returns:

  • (Float, nil)


971
972
973
# File 'sig/types.rbs', line 971

def quality_score
  @quality_score
end

#redaction_reportRedactionReport?

Returns the value of attribute redaction_report.

Returns:



985
986
987
# File 'sig/types.rbs', line 985

def redaction_report
  @redaction_report
end

#revisionsArray[DocumentRevision]?

Returns the value of attribute revisions.

Returns:



976
977
978
# File 'sig/types.rbs', line 976

def revisions
  @revisions
end

#structured_outputjson_value?

Returns the value of attribute structured_output.

Returns:

  • (json_value, nil)


977
978
979
# File 'sig/types.rbs', line 977

def structured_output
  @structured_output
end

#summaryDocumentSummary?

Returns the value of attribute summary.

Returns:



981
982
983
# File 'sig/types.rbs', line 981

def summary
  @summary
end

#tablesArray[Table]?

Returns the value of attribute tables.

Returns:



960
961
962
# File 'sig/types.rbs', line 960

def tables
  @tables
end

#translationTranslation?

Returns the value of attribute translation.

Returns:



983
984
985
# File 'sig/types.rbs', line 983

def translation
  @translation
end

#urisArray[ExtractedUri]?

Returns the value of attribute uris.

Returns:



975
976
977
# File 'sig/types.rbs', line 975

def uris
  @uris
end