🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@paulkinlan/transformerjs-breadboard-kit

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paulkinlan/transformerjs-breadboard-kit

A Kit with useful nodes for use with TransformerJS.

latest
Source
npmnpm
Version
1.3.2
Version published
Maintainers
1
Created
Source

"Google Labs Breadboard" TransformerJS Nodes Kit

This is a collection of Breadboard nodes that let you integrate transformerjs in to your apps built with Breadboard.

Installing

This Kit requires Node version >=v19.0.0. To install:

npm install @paulkinlan/transformerjs-breadboard-kit

Node Types

Here are all node handlers that are included in the OpenAI Breadboard Kit

The pipeline node

Takes an input

Inputs:

  • input required. The value to be checked if undefined.
  • task required. The transformerjs task to be used (tested: sentiment-analysis, summarize)
  • model optional.

Outputs:

  • modelResult - likely an array of results returned by the transfomerjs logic as defined by task and model

The summarize node

  • input required. The text to be summarized.
  • model optional. The model to use. This will be loaded by transformjs. The default is Xenova/distilbart-cnn-6-6.

Outputs:

  • modelResult - an array of { "summary_text": "[some text]" }

The sentiment-analysis node

  • input required. The text to be analysed for sentiment.
  • model optional. The model to use. This will be loaded by transformjs. The default is Xenova/distilbert-base-uncased-finetuned-sst-2-english.

Outputs:

  • modelResult - an array of objects of the form: { "label": "POSITIVE", "confidence": 0.9995 }

FAQs

Package last updated on 23 Feb 2024

Did you know?

Socket

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.

Install

Related posts