This is a collection of Breadboard nodes that let you integrate transformerjs
in to your apps built with Breadboard.
This Kit requires Node version >=v19.0.0. To install:
npm install @paulkinlan/transformerjs-breadboard-kit
Here are all node handlers that are included in the OpenAI Breadboard Kit
Takes an input
input
required. The value to be checked if undefined.task
required. The transformerjs task to be used (tested:sentiment-analysis
,summarize
)model
optional.
modelResult
- likely an array of results returned by thetransfomerjs
logic as defined bytask
andmodel
input
required. The text to be summarized.model
optional. The model to use. This will be loaded by transformjs. The default isXenova/distilbart-cnn-6-6
.
modelResult
- an array of{ "summary_text": "[some text]" }
input
required. The text to be analysed for sentiment.model
optional. The model to use. This will be loaded by transformjs. The default isXenova/distilbert-base-uncased-finetuned-sst-2-english
.
modelResult
- an array of objects of the form:{ "label": "POSITIVE", "confidence": 0.9995 }