New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pat-tree

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pat-tree - npm Package Compare versions

Comparing version 0.2.8 to 1.0.0

2

package.json
{
"name": "pat-tree",
"version": "0.2.8",
"version": "1.0.0",
"description": "PAT tree construction for Chinese documents, keyword extraction and text segmentation",

@@ -5,0 +5,0 @@ "main": "index.js",

pat-tree
========
PAT tree construction for Chinese document, now in development.
Provide functionality to add documents and construct PAT tree in memory, store it to database,
extract keywords, and split documents.
PAT tree construction for Chinese document.
Provide functionality to add documents and construct PAT tree in memory,
convert to JSON for storing to database,
extract keywords, and text segmentation.

@@ -15,9 +16,2 @@ example of result:

# WARNING
This project is now in development and used for academic purpose,
**DO NOT** use this module in production until the **WARNING** statement is removed.
//TODO: improve document splitting algorithm
# Installation

@@ -32,3 +26,3 @@

### Instanitiate
### Instantiate

@@ -50,7 +44,7 @@ ```javascript

var SLPs = tree.extractSLP(TFThreshold, SEThreshold, verbose);
// SLPs: array of strings, which are signifiant lexical patterns.
// SLPs: array of JSON objects, which are signifiant lexical patterns and their relative informations.
```
If the frequency of a pattern exceeds `TFThreshold`,
and the SE value exceeds `SEThreshold`, it would appear in the result array.
If the frequency of a pattern exceeds `TFThreshold`, it would appear in the result array.
The higher the `SEThreshold`, the stricter to filter out longest substrings of a significant lexical pattern.

@@ -258,2 +252,3 @@ `verbose`: optional, if set to true, then will print out progress on console.

* 1.0.0 Stable release
* 0.2.8 Improve algorithm of `segmentDoc()`

@@ -260,0 +255,0 @@ * 0.2.7 Fix bug in `reborn()`

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