Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
dropsuit-dersnt
Advanced tools
Readme
DropSuit NLP is an open-source JavaScript and Node.js library providing various tools for natural language processing and data manipulation. The dersnt function is one of its modules, used for processing default object instance json key value arrays (req_arr: requests), (res_arr: responses). It locates sentences based on input nouns and extracts derivative nouns, and offers three output options: dsnSn() for derivative sentences, dsnSt() for a concatenated string of derivative words, and dsnAr() for an array of derivative sentences' words. This library is licensed under the Apache License 2.0.
The dersnt function is a part of the DropSuit NLP library, and works in both JavaScript and Node.js. It processes default object instance json key value arrays (req_arr: requests), (res_arr: responses) to find sentences related to input nouns and extract derivative nouns. It provides three output options: dsnSn() for derivative sentences, dsnSt() for a concatenated string of derivative words, and dsnAr() for an array of derivative sentences' words. This function is open-source and available under the Apache License 2.0.
Add the library function by installing it via npm:
npm install dropsuit-dersnt
Import the library in your project:
const dropsuit_dersnt = require("dropsuit-dersnt");
Process intents.json using 'jsonIntStrct' function:
const json_data = require("dropsuit-dersnt/jsobj.js");
let intentData = json_data.jsonIntStrct("assets/json/intents.json");
Set boolean parameter (true/false) argument value to display console log processing results output information in terminal:
let dsdersnt = new dropsuit_dersnt(null, intentData.req_arr, intentData.res_arr, false);
āāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Input Sentence
āāāāāāāāāāāāāāā¬āāāāāāāāāāāāāā
āāāāāāāāāāāāāāā“āāāāāāāāāāāāāā
ā Extract Nouns
āāāāāāāāāāāāāāā¬āāāāāāāāāāāāāā
āāāāāāāāāāāāāāā“āāāāāāāāāāāāāā
ā Derivative Sentences
āāāāāāāāāāāāāāā¬āāāāāāāāāāāāāā
āāāāāāāāāāāāāāā“āāāāāāāāāāāāāā
ā Derivative Sent. Nouns
āāāāāāāāāāāāāāāāāāāāāāāāāāāāā
The 'dersnt' and 'dersnt_async' functions provide the capability to process requests in both synchronous and asynchronous modes. For more detailed information on how to use the functions in either mode, please refer to the usage example
let out = dsdersnt.dersnt(myInputString);
console.log(out);
Return object instance:
Input:
[ 'computer' ]
Nouns:
[ 'computer' ]
Output:
- Derivative sentences/nouns -
{
dsnSen: [
'What are some recommended healthy snacks for computer users?',
'What is a computer?',
'What are the components of a computer?',
'A robot is a machine designed to carry out a complex series of actions automatically, especially by being programmed by a computer.',
'A computer is an electronic device that processes data.',
'Components of a computer: CPU, RAM, storage, motherboard, power supply.'
],
dsnStr: 'recommended healthy snacks users components robot machine designed carry complex series actions automatically especially programmed
electronic device processes data cpu ram storage motherboard power supply',
dsnArr: [
'recommended', 'healthy',
'snacks', 'users',
'components', 'robot',
'machine', 'designed',
'carry', 'complex',
'series', 'actions',
'automatically', 'especially',
'programmed', 'electronic',
'device', 'processes',
'data', 'cpu',
'ram', 'storage',
'motherboard', 'power',
'supply'
],
dsnSn: [Function: dsnSn],
dsnSt: [Function: dsnSt],
dsnAr: [Function: dsnAr]
}
DropSuit is an open-source library and I am dedicated to ensuring its continued development and improvement. If you have any questions, feedback, or encounter any issues, please reach out through the support via PayPal, and read more about support details.
Your support is crucial for the library's success. You can also contribute to the project by submitting bug reports, feature requests, or by providing feedback. Sharing the library with others who may find it useful and giving it a star on GitHub are also great ways to show your support. Thank you for using DropSuit!
FAQs
DropSuit NLP - dersnt function: DropSuit NLP Method: dersnt - A JavaScript and Node.js function for locating sentences based on input nouns and uncovering derivative nouns.
The npm package dropsuit-dersnt receives a total of 0 weekly downloads. As such, dropsuit-dersnt popularity was classified as not popular.
We found that dropsuit-dersnt 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.