Xenova HF staff commited on
Commit
4e9fc31
·
1 Parent(s): f44b5f5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -15,10 +15,10 @@ npm i @xenova/transformers
15
  import { pipeline } from '@xenova/transformers';
16
 
17
  // Create feature extraction pipeline
18
- const classifier = await pipeline('feature-extraction', 'Xenova/conv-bert-medium-small', { quantized: false });
19
 
20
  // Perform feature extraction
21
- const output = await classifier('This is a test sentence.');
22
  console.log(output)
23
  // Tensor {
24
  // dims: [ 1, 8, 384 ],
 
15
  import { pipeline } from '@xenova/transformers';
16
 
17
  // Create feature extraction pipeline
18
+ const extractor = await pipeline('feature-extraction', 'Xenova/conv-bert-medium-small', { quantized: false });
19
 
20
  // Perform feature extraction
21
+ const output = await extractor('This is a test sentence.');
22
  console.log(output)
23
  // Tensor {
24
  // dims: [ 1, 8, 384 ],