You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This Add-on provides a pre-trained word embedding and sentence classification model using FastText for use in machine learning and deep learning algorithms. FastText is an open-source library which provides efficient and scalable libraries for text analytics. For more information on the pre-trained word vector model see https://fasttext.cc/docs/en/english-vectors.html
Usage Example:
% Load the trained model
emb = fastTextWordEmbedding;
% Find the top 10 closest words to “impedance” according to this word embedding
impedanceVec = word2vec(emb,"impedance");
vec2word(emb, impedanceVec,10)
ans =
10×1 string array
"impedance"
"impedances"
"capacitance"
"Impedance"
"resistor"
"impedence"
"inductance"
"voltage"
"S-parameters"
"ohms"
MATLAB Release Compatibility
- Compatible with R2018a to R2026a
Platform Compatibility
- Windows
- macOS (Apple Silicon)
- macOS (Intel)
- Linux
