Class: Xberg::HierarchyConfig

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHierarchyConfig

Returns a new instance of HierarchyConfig.

Parameters:

  • enabled: (Boolean)
  • k_clusters: (Integer)
  • include_bbox: (Boolean)
  • ocr_coverage_threshold: (Float)


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

def initialize: (?enabled: bool, ?k_clusters: Integer, ?include_bbox: bool, ?ocr_coverage_threshold: Float) -> void

Instance Attribute Details

#enabledBoolean?

Returns the value of attribute enabled.

Returns:

  • (Boolean, nil)


401
402
403
# File 'sig/types.rbs', line 401

def enabled
  @enabled
end

#include_bboxBoolean?

Returns the value of attribute include_bbox.

Returns:

  • (Boolean, nil)


403
404
405
# File 'sig/types.rbs', line 403

def include_bbox
  @include_bbox
end

#k_clustersInteger?

Returns the value of attribute k_clusters.

Returns:

  • (Integer, nil)


402
403
404
# File 'sig/types.rbs', line 402

def k_clusters
  @k_clusters
end

#ocr_coverage_thresholdFloat?

Returns the value of attribute ocr_coverage_threshold.

Returns:

  • (Float, nil)


404
405
406
# File 'sig/types.rbs', line 404

def ocr_coverage_threshold
  @ocr_coverage_threshold
end

Class Method Details

.defaultHierarchyConfig

Returns:



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

def self.default: () -> HierarchyConfig