Module: Mindee::Parsing::Universal
- Included in:
- UniversalListField, Mindee::Product::Universal::UniversalPagePrediction, Mindee::Product::Universal::UniversalPrediction
- Defined in:
- lib/mindee.rb,
lib/mindee/parsing/universal/universal_list_field.rb,
lib/mindee/parsing/universal/universal_object_field.rb
Overview
Universal fields and functions.
Defined Under Namespace
Classes: UniversalListField, UniversalObjectField
Class Method Summary collapse
Class Method Details
.universal_object?(str_dict) ⇒ Boolean
102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/mindee/parsing/universal/universal_object_field.rb', line 102 def self.universal_object?(str_dict) common_keys = [ 'value', 'polygon', 'rectangle', 'page_id', 'confidence', 'quadrangle', 'values', 'raw_value', ] str_dict.each_key { |key| return true unless common_keys.include?(key.to_s) } false end |