Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
the Natural Language Processing tools under the nodeJs running time, including Chinese word segmentation, sentiment analysis and so on.
let nlp = require('nlp_node');
console.log(nlp.segment('这是待分词文本,调用接口直接分词并且统计词频。'));
console.log(nlp.sense('这是待情感分析文本,调用接口直接分析文章情感。'));
npm install --save nlp_node
description
the interface of the Natural Language Processing.
loading
first you need to load nlp.
let nlp = require('nlp_node');
.segment(text, tags, options)
simply, method to segment a string and return object consist of words.
example
let nlp = require('nlp_node');
let content = '这是待分词文本,调用 nlp 接口直接分词并且统计词频。';
let object = nlp.segment(content);
custom segment params:
default
tags: ['n', 'v', 'a'],
options: {
len: 2
}
tags = null 表示所有词性
.sense(text)
simply, method to sense a string or string array and return object consist of positive and negative.
example
let nlp = require('nlp_node');
let content = '这是待情感分析文本,调用 nlp 接口分析并且返回情感分析结果。';
let object = nlp.sense(content);
NLPIR
divide目录 - /lib/divide/
sentiment目录 - /lib/sentiment/
FAQs
package NLPIR by Node.js
The npm package nlp-node receives a total of 1 weekly downloads. As such, nlp-node popularity was classified as not popular.
We found that nlp-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.