Crate sif_embedding
source ·Expand description
sif-embedding
This crate provides simple but powerful sentence embedding techniques based on Smooth Inverse Frequency (SIF) described in the paper:
Sanjeev Arora, Yingyu Liang, and Tengyu Ma, A Simple but Tough-to-Beat Baseline for Sentence Embeddings, ICLR 2017.
Basic usage
See the document of Sif
.
Backend specifications
This crate depends on ndarray-linalg and
allows you to specify any backend supported by ndarray-linalg through features
.
The feature names in sif-embedding are the same as those in ndarray-linalg v0.16.0.
The default is openblas
and uses the OpenBLAS backend.
Note that you must specify one backend.
If you are having problems compiling this library due to the backend, my tips may help.
Re-exports
Modules
- Smooth Inverse Frequency (SIF).
- Unigram language models.
- Utilities.
Type Definitions
- Common type of floating numbers.