1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "patentClaimsText": "1. A method of approximate nearest neighbor search comprising: hashing each data vector with a plurality of locality-sensitive hash functions to generate hash codes; storing the vectors in hash tables indexed by the hash codes; and, for a query vector, retrieving candidate vectors from the buckets matching the query's hash codes and ranking the candidates by exact distance to the query vector.",
12 "priorityDate": "2017-06-01"
13};
14
15
16const run = await client.actor("davidcondrey/wl-prior-art-invalidator").call(input);
17
18
19console.log('Results from dataset');
20console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
21const { items } = await client.dataset(run.defaultDatasetId).listItems();
22items.forEach((item) => {
23 console.dir(item);
24});
25
26