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 - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

6

ChangeLog.md
# NodeJieba ChangeLog
## v2.4.1
+ upgrade deps/limonp -> v0.6.3
+ upgrade deps/cppjieba -> v5.0.3
+ merged [pull request 148](https://github.com/yanyiwu/nodejieba/pull/148)
## v2.4.0

@@ -4,0 +10,0 @@

2

package.json
{
"name": "nodejieba",
"description": "chinese word segmentation for node",
"version": "2.4.0",
"version": "2.4.1",
"author": "Yanyi Wu <i@yanyiwu.com>",

@@ -6,0 +6,0 @@ "maintainers": [

declare module "nodejieba" {
export function load(dict: object): void;
export function cut(sentence: string, strict?: boolean): any;
export function cutHMM(sentence: string): any;
export function cutAll(sentence: string): any;
export function cutForSearch(sentence: string, strict?: boolean): any;
export function tag(sentence: string): any;
export function extract(sentence: string, threshold: number): any;
export function insertWord(sentence: string): any;
export function cutSmall(sentence: string, small: number): any;
export interface LoadOptions {
dict?: string;
hmmDict?: string;
userDict?: string;
idfDict?: string;
stopWordDict?: string;
}
export interface TagResult {
word: string;
tag: string;
}
export interface ExtractResult {
word: string;
weight: number;
}
export function load(dict?: LoadOptions): void;
export function cut(sentence: string, strict?: boolean): string[];
export function cutHMM(sentence: string): string[];
export function cutAll(sentence: string): string[];
export function cutForSearch(sentence: string, strict?: boolean): string[];
export function tag(sentence: string): TagResult[];
export function extract(sentence: string, threshold: number): ExtractResult[];
export function insertWord(sentence: string): boolean;
export function cutSmall(sentence: string, small: number): boolean;
}

Sorry, the diff of this file is not supported yet

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