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 word segmentation for node

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
decreased by-16.4%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status Dependency Status devDependency Status NpmDownload Status


NodeJieba "结巴"分词的Node.js版本

介绍

NodeJieba 是由 CppJieba 包装而成的 node 扩展,用来支持 Node.js 的中文分词功能。

特点

  • require("nodejieba") 时自动载入词典,即插即用。
  • 底层算法实现是C++,性能高效。

对实现细节感兴趣的请看如下博文:

下载

npm install nodejieba

因为npm速度很慢而且经常因为墙的原因出现莫名其妙的问题,可以试试使用cnpm,命令如下:

npm --registry=http://r.cnpmjs.org install nodejieba

用法

初始化

var nodejieba = require("nodejieba");
# require 时自动载入词典。

词性标注

具体用法参考 test/test.js

关键词抽取

具体用法参考 test/test.js

测试

node v0.10.2, node v0.11.13, node v0.12.1, iojs v1.3.0 下测试通过。

在线演示

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

许可证

MIT http://yanyiwu.mit-license.org

鸣谢

Jieba中文分词

作者

Keywords

FAQs

Package last updated on 13 Jun 2015

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