sourced.ml.core.models.id2vec
sourced.ml.core.models.id2vec.
Id2Vec
Bases:modelforge.Model
modelforge.Model
id2vec model - source code identifier embeddings.
NAME
VENDOR
DESCRIPTION
LICENSE
embeddings
numpy.ndarray with the embeddings of shape (N tokens x embedding dims).
numpy.ndarray
tokens
List with the processed source code identifiers.
construct
dump
items
Returns the tuples belonging to token -> index mapping.
sourced.ml.core
sourced.ml.core.models
sourced.ml.core.models.df
sourced.ml.core.models.id_splitter