Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
nlp-node
Advanced tools
Readme
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 2 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.