MacOS 下安装 FastText:无须 Homebrew 的便捷方法
MacOS 下安装 FastText:无须 Homebrew 的便捷方法
有时在 VPN 环境下,使用 Homebrew 下载 FastText 会遇到困难。别担心,你可以通过以下步骤进行手动安装:
- 打开终端,下载 FastText 源代码:
git clone https://github.com/facebookresearch/fastText.git
- 进入 FastText 目录,编译源代码:
cd fastText
make
- 安装命令行工具:
sudo make install
- 测试是否安装成功:
fasttext
如果成功安装,会显示 FastText 的帮助文档。
现在,你可以在 MacOS 上尽情使用 FastText 进行文本分类、词嵌入等自然语言处理任务了!
原文地址: https://www.cveoy.top/t/topic/nRKe 著作权归作者所有。请勿转载和采集!