MacOS 上安装 FastText 的步骤指南
- 安装依赖库
在终端中运行以下命令:
brew install cmake
brew install boost
- 下载和安装 FastText
在终端中运行以下命令:
git clone https://github.com/facebookresearch/fastText.git
cd fastText
make
- 测试安装
在终端中进入 FastText 目录,运行以下命令:
./fasttext
如果输出以下信息,则说明安装成功:
usage: fasttext <command> <args>
The commands supported by fasttext are:
supervised train a supervised classifier
test evaluate a supervised classifier
predict predict most likely labels
predict-prob predict most likely labels with probabilities
skipgram train a skipgram model
cbow train a cbow model
print-word-vectors print word vectors given a trained model
print-sentence-vectors print sentence vectors given a trained model
nn query for nearest neighbors
analogies query for analogies
原文地址: https://www.cveoy.top/t/topic/nRHI 著作权归作者所有。请勿转载和采集!