-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add snowballing functionality #37
Conversation
If snowballing is only performed on the included records, we now also only look for OpenAlex identifier for those records.
This aligns better with the other arguments.
|
Got the following errors for this datafile: Backward:
and for forward snowballing:
|
Thanks for testing! I fixed the first bug, and I'll have a look at what is going wrong for that dataset. |
Also happens on
This is my version information:
|
Thanks! I think I found the bug and made a fix, but I still need to test it a bit. |
Excellent! I just ran it and it works for me at least for the example datasets from ASReview itself. For the dataset that were generated using an old version of ASReview, I'm getting this error. Seems to be because of column names:
|
Another thing I noticed is that there's no warning when overwriting a file. Maybe good to implement. Here's an example of what I mean:
|
I am getting the following error when I try to run forward snowballing with asreview 1.6:
Not sure if this error is caused by me or the code? |
This has to do with the type annotations I added, in combination with older Python versions. Could you try it again with the fix I just made? If it still doesn't work, maybe try it with Python3.11? |
With the fix I get the following error:
Will try python 3.11 next |
Thanks for testing, this is useful! This bug is unrelated to the previous one, but happens because your test dataset doesn't have included information. I made a fix so that your test dataset should also work. |
Can you rebase/merge master? |
Done! |
This pull request adds snowballing functionality to ASReview Datatools. Snowballing means finding incoming (forwards) and outgoing (backwards) citations of works in a dataset. This implementation works by taking an ASReview dataset as input, looking in OpenAlex for the references and then writing that away in a separate output file that could be read by ASReview again.
@J535D165 I'd be happy to hear what you think of this pull request! I added type hinting to my code, but I'm happy to remove it to align it with the rest of the code. There also is no Ruff settings file in this repository yet, so I used the settings I found in asreview main.