struct

Memo::Clustering::Cluster

Inherits Struct < Value < Object

Cluster of consecutive sources with similar embeddings.

Constructors

new(start_id : Int64, end_id : Int64, source_ids : Array(Int64), size : Int32)
Source

Instance methods

end_id

Last source's external_id in the cluster

Source
size

Number of sources in the cluster

Source
source_ids

All external_ids in the cluster (in order)

Source
start_id

First source's external_id in the cluster

Source