Skip to content
/ cae Public

Context-Aware Embeddings based on Hybrid Singular Value Decomposition (SVD)

License

Notifications You must be signed in to change notification settings

arsast/cae

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Context-Aware Embeddings (CAE)

The module produces context-aware embeddings for text documents (utilizes their surrounding features, a.k.a. context). So far, only unsupervised version of the algorithm is implemented.

The concept behind is relatively easy. We basically average documents words vectors (could be any like w2v, glove, fasttext or your own), normalize the sum-vector and extract from the obtained embeddings their projection to the principal components which construction is guided through hybrid SVD and additional knowledge of documents context.

The work inspired by the following papers:

Dependences:

  • cholmod [docs] (python wrapper for sparse Choletsky decomposition)
    brew install suite-sparse
    pip install scikit-sparse
    
  • scipy (svd routine)
  • numpy

References

The link to the corresponding paper will be announced later.

About

Context-Aware Embeddings based on Hybrid Singular Value Decomposition (SVD)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages