NeuralSymbolic::EmbeddingStore
Inherits Reference < Object
Stores and retrieves concept embeddings
Constructors
new
Instance methods
add(embedding : Embedding)
embeddings
get(concept : String) : Embedding | Nil
nearest(query : Embedding, k : Int32 = 5) : Array(Tuple(String, Float64))
Return the top-k most similar concepts to the query embedding
size
to_atomspace(atomspace : AtomSpace::AtomSpace)
Store embeddings as AtomSpace atoms (concept nodes with attention values)