File size: 542 Bytes
1aaf197
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
language: en
license: apache-2.0
---

# Introduction

This model is a conversion to ONNX format of https://huggingface.co/ESGBERT/SocialBERT-social

It is compatible with Transformers.js

# Usage (Transformers.js)

```js
import { pipeline } from "@huggingface/transformers";

const pipe = await pipeline(
  "text-classification",
  "sondalex/SocialBERT-social",
);

const sentences = [
  "The CEO has announced a major restructuring of the company's leadership team.",
];

const output = await pipe(sentences);

console.log(output);
```