Views
No views yet
npm i @huggingface/transformersXenova/conv-bert-base.1import { pipeline } from '@huggingface/transformers';
2
3// Create feature extraction pipeline
4const extractor = await pipeline('feature-extraction', 'Xenova/conv-bert-base');
5
6// Perform feature extraction
7const output = await extractor('This is a test sentence.');
8console.log(output)
9// Tensor {
10// dims: [ 1, 8, 768 ],
11// type: 'float32',
12// data: Float32Array(6144) [ -0.13742968440055847, -0.6912388205528259, ... ],
13// size: 6144
14// }onnx).