1:安装系统依赖
sent2vec
需要 GCC 和 Cython 进行编译,首先确保你安装了这些基本依赖:
sudo apt update
sudo apt install build-essential python3-dev python3-pip
pip install cython
2:克隆 Sent2Vec 仓库
git clone https://github.com/epfml/sent2vec.git
cd sent2vec
3:编译 Sent2Vec
make
4. 安装 Sent2Vec Python 绑定
pip install .