Skip to content

mskj-apaas/search_optimize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

我的电商搜索引擎优化

001 类目预测

详细请见文章

操作步骤

生成模型

$ git clone https://github.com/jevonszmx/search_optimize.git
$ cd search_optimize/train
$ pip install -r requirements.txt
$ python train.py

得到以下的结果:

Read 1M words
Number of words:  86403
Number of labels: 100
Progress: 100.0% words/sec/thread: 1206475 lr:  0.000000 loss:  0.093274 ETA:   0h 0m
(('__label__女士内衣/男士内衣/家居服', '__label__洗护清洁剂/卫生巾/纸/香薰', '__label__乐器/吉他/钢琴/配件'), array([1.00005972e+00, 1.02046288e-05, 1.00188754e-05]))
(9978, 0.8443575866907196, 0.8443575866907196)

运行服务

$ cd search_optimize/server
$ npm install -S
$ npm run fenci
$ npm run predict

About

how to optimize my search engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 64.0%
  • Python 36.0%