Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议出个像nodejieba和node-segment差不多的关键词提取模式 #9

Open
LehaoLin opened this issue Apr 2, 2021 · 1 comment

Comments

@LehaoLin
Copy link

LehaoLin commented Apr 2, 2021

建议出个像nodejieba和node-segment差不多的关键词提取模式

通过不同词的权重来对关键词进行提取
nodejieba关键词提取:

var nodejieba = require("nodejieba");
var topN = 4;
console.log(nodejieba.extract("升职加薪,当上CEO,走上人生巅峰。", topN));
//[ { word: 'CEO', weight: 11.739204307083542 },
//  { word: '升职', weight: 10.8561552143 },
//  { word: '加薪', weight: 10.642581114 },
//  { word: '巅峰', weight: 9.49395840471 } ]
@linonetwo
Copy link
Owner

好主意,不过我最近在开发别的开源项目,这个排期排到明年去了(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants