flare.embeddings

Embedding

protocol

members

embedding-size

(embedding-size this)

lookup

(lookup this obj)

vocab

(vocab this)

fixed-embedding

(fixed-embedding emb-size obj-vec-pairs)(fixed-embedding factory emb-size obj-vec-pairs)

learned-embedings

(learned-embedings param-node vocab)

read-text-embedding-pairs

(read-text-embedding-pairs rdr)

sent-nodes

(sent-nodes emb sent)(sent-nodes emb sent unk)

take a sentence and return sequence of constant node tensors, where each consant has the original word as part of the name.

Will use unk if given for unknown tokens, or omit if unk isn’t passed in