Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodejieba

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodejieba

chinese segment for node

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

NodeJieba "结巴"中文分词的node版本

概述

NodeJieba只是CppJieba简单包装而成的node扩展,用来进行中文分词。

详见nodejieba_blog

安装和使用

npm install nodejieba

使用实例

mkdir nodejieba_test
cd nodejieba_test
npm install nodejieba

echo "var segment = require(\"nodejieba\");
segment.loadDict(\"./node_modules/nodejieba/dict/jieba.dict.utf8\", \"./node_modules/nodejieba/dict/hmm_model.utf8\");
console.log(segment.cut(\"南京市长江大桥\"));" > index.js

node index.js

测试

node v0.10.2下测试通过

演示

http://cppjieba-webdemo.herokuapp.com/ (chrome is suggested)

鸣谢

结巴中文分词

客服

wuyanyi09@gmail.com

Keywords

FAQs

Package last updated on 20 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc