Requirements

fastText builds on modern Mac OS and Linux distributions. Since it uses C++11 features, it requires a compiler with good C++11 support. These include :

(gcc-4.8 or newer) or (clang-3.3 or newer)
yum upgrade gcc
yum install gcc-c++ 
yum install python-devel

You will need

Python version 2.7 or >=3.4
NumPy & SciPy
pybind11

Building fastText
The easiest way to install fastText is to use pip.

$ git clone https://github.com/facebookresearch/fastText.git
$ cd fastText
$ pip install .

Alternatively you can also install fastText using setuptools.

$ git clone https://github.com/facebookresearch/fastText.git
$ cd fastText
$ python setup.py install

Now you can import this library with

import fastText

这里是安装了pyhton文件中fastText模块
我们如果自己用需要按照以下方式
使用make构建fastText(首选)

$ wget https://github.com/facebookresearch/fastText/archive/v0.1.0.zip
$ unzip v0.1.0.zip
$ cd fastText-0.1.0
$ make

工具使用

GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:1 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐