1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "text": """Transformers changed NLP (Vaswani et al., 2017), and deep residual networks made very deep vision models trainable.
9
10References
111. Vaswani, A., Shazeer, N., Parmar, N., et al. (2017). Attention is all you need. Advances in Neural Information Processing Systems, 30.
122. He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. CVPR. https://doi.org/10.1109/CVPR.2016.90
133. 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""" }
14
15
16run = client.actor("vivi_quant/ai-citation-checker").call(run_input=run_input)
17
18
19print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
20for item in client.dataset(run.default_dataset_id).iterate_items():
21 print(item)
22
23