|
--- |
|
language: en |
|
license: apache-2.0 |
|
--- |
|
|
|
# Introduction |
|
|
|
This model is a conversion to ONNX format of https://huggingface.co/ESGBERT/EnvironmentalBERT-environmental |
|
|
|
It is compatible with Transformers.js |
|
|
|
# Usage (Transformers.js) |
|
|
|
```js |
|
import { pipeline } from "@huggingface/transformers"; |
|
|
|
const pipe = await pipeline( |
|
"text-classification", |
|
"sondalex/EnvironmentalBERT-environmental ", |
|
); |
|
|
|
const sentences = [ |
|
"The CEO has announced a major restructuring of the company's leadership team.", |
|
]; |
|
|
|
const output = await pipe(sentences); |
|
|
|
console.log(output); |
|
``` |
|
|
|
|