Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
api-builder-plugin-comprehend-sdk
Advanced tools
Axway API Builder flow-node that implements AWS Comprehend for Natural Language Processing (NLP): api-builder-plugin-comprehend-sdk.
Flow-nodes are used within Axway API Builder's flow editor that is a low-code / no-code solution to designing and developing services that integrate to many different connected components, such as databases and APIs.
After creating your API Builder Project, you can install this plugin using npm:
npm install api-builder-plugin-comprehend-sdk
Note that this command will install from npm. If you want to install locally, then provide the full path to the plugin folder
Before launching your API Builder app that uses this plugin, you must set the following two environment variables as per the AWS SDK for JavaScript online docs:
Find the plugin in the NLP group in the Flow-Nodes panel. Drag onto the canvas and select the desired method and provide the input Text and wire up to the rest of your flow as shown below:
The currently implemented methods are described below.
AWS docs are here
Provide the Text input and the optional LanguageCode and the output will be similar to below:
Text = "Today is my birthday, I am so happy."
{
"SentimentScore": {
"Mixed": 0.0033542951568961143,
"Positive": 0.9869875907897949,
"Neutral": 0.008563132025301456,
"Negative": 0.0010949420975521207
},
"Sentiment": "POSITIVE",
}
}
AWS docs are here
Provide the Text input and the output will be similar to below:
Text = "Bob lives in Seattle. He is a software engineer at Amazon."
{
"Languages": [
{
"LanguageCode": "en",
"Score": 0.9774383902549744
},
{
"LanguageCode": "de",
"Score": 0.010717987082898617
}
]
}
AWS docs are here
Provide the Text input and the optional LanguageCode and the output will be similar to below:
Text = "Hello Paulo Santos. The latest statement for your credit card account 1111-0000-1111-0000 was mailed to 123 Any Street, Seattle, WA 98109."
{
"Entities": [
{
"Score": 0.9999669790267944,
"Type": "NAME",
"BeginOffset": 6,
"EndOffset": 18
},
{
"Score": 0.8905550241470337,
"Type": "CREDIT_DEBIT_NUMBER",
"BeginOffset": 69,
"EndOffset": 88
},
{
"Score": 0.9999889731407166,
"Type": "ADDRESS",
"BeginOffset": 103,
"EndOffset": 138
}
]
}
FAQs
A plugin for Axway API Builder
The npm package api-builder-plugin-comprehend-sdk receives a total of 0 weekly downloads. As such, api-builder-plugin-comprehend-sdk popularity was classified as not popular.
We found that api-builder-plugin-comprehend-sdk 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
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.