1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "text": `Transformers changed NLP (Vaswani et al., 2017), and deep residual networks made very deep vision models trainable.
12
13References
141. Vaswani, A., Shazeer, N., Parmar, N., et al. (2017). Attention is all you need. Advances in Neural Information Processing Systems, 30.
152. He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. CVPR. https://doi.org/10.1109/CVPR.2016.90
163. Smith, J., & Brown, L. (2021). Quantum gardening improves transformer reasoning. Journal of Imaginary Results, 12(3), 45-67. https://doi.org/10.1234/jir.2021.0045`
17};
18
19
20const run = await client.actor("vivi_quant/ai-citation-checker").call(input);
21
22
23console.log('Results from dataset');
24console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
25const { items } = await client.dataset(run.defaultDatasetId).listItems();
26items.forEach((item) => {
27 console.dir(item);
28});
29
30