fasttext-server
所属分类:聚类算法
开发工具:C++
文件大小:106KB
下载次数:0
上传日期:2019-03-12 03:25:10
上 传 者:
sh-1993
说明: fastText服务器
(fastText server)
文件列表:
CMakeLists.txt (565, 2019-03-12)
config (0, 2019-03-12)
config\httpd.conf (722, 2019-03-12)
include (0, 2019-03-12)
include\action.h (404, 2019-03-12)
include\croco.h (2630, 2019-03-12)
include\json.hpp (505251, 2019-03-12)
include\responder.h (350, 2019-03-12)
include\uv (0, 2019-03-12)
include\uv\http.h (4290, 2019-03-12)
include\uv\route.h (1471, 2019-03-12)
include\uv\uri.h (7609, 2019-03-12)
src (0, 2019-03-12)
src\CMakeLists.txt (1192, 2019-03-12)
src\action (0, 2019-03-12)
src\action\CMakeLists.txt (484, 2019-03-12)
src\action\vectors.cpp (1988, 2019-03-12)
src\croco (0, 2019-03-12)
src\croco\CMakeLists.txt (352, 2019-03-12)
src\croco\di.cpp (681, 2019-03-12)
src\croco\ini_parser.cpp (2265, 2019-03-12)
src\croco\logger.cpp (2996, 2019-03-12)
src\httpd.cpp (727, 2019-03-12)
src\main.cpp (2755, 2019-03-12)
src\responder.cpp (1924, 2019-03-12)
src\uv (0, 2019-03-12)
src\uv\CMakeLists.txt (569, 2019-03-12)
src\uv\http-client.cc (3702, 2019-03-12)
src\uv\http-server.cc (4266, 2019-03-12)
src\uv\http.cc (5092, 2019-03-12)
src\uv\route.cc (1353, 2019-03-12)
# ftext-server
fastTextのサーハ稼働版
## Requirements
### libfasttext
```
$ curl -fSL "https://github.com/facebookresearch/fastText/archive/0.2.0.tar.gz" -o "./fastText-0.2.0.tgz"
$ tar xf fastText-0.2.0.tgz
$ cd fastText-0.2.0
$ mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release
$ make -j $(nproc)
$ sudo make install
```
#### libhttp_parser
```
$ sudo apt install libhttp-parser-dev libhttp-parser2.7.1
```
#### libuv
```
$ sudo apt install libuv1 libuv1-dev
```
## Building fastText server
```
$ cd ftext-server
$ mkdir build
$ cd build
$ cmake ..
$ make -j $(nproc)
$ sudo make install
```
## Start fastText server
```
# ftext-server -c /opt/conf/ftext-server.conf -d
```
## Query synopsis
```php
http://localhost:9090/vectors/sentenc/?text=日本 の 首都
http://localhost:9090/vectors/word/?text=日本
```
近期下载者:
相关文件:
收藏者: