Coder Social home page Coder Social logo

rohitgarud / asreview-notes-export Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 65 KB

Extension for ASReview Lab for exporting notes from GUI to dataset csv file

License: Apache License 2.0

Python 100.00%
asreview helper-tool pandas-python csv pandas

asreview-notes-export's Introduction

Hi ๐Ÿ‘‹, I'm Rohit Garud

A Mechanical Engineer with Passion for Machine Learning from India

Languages and Tools:

matlab python pandas scikit_learn pytorch postgresql flask css3 html5

ย rohitgarud

asreview-notes-export's People

Contributors

rohitgarud avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

j535d165

asreview-notes-export's Issues

`pip install asreview-notes-export` gives error message

pip install asreview-notes-export leads to the following error message:

ERROR: Could not find a version that satisfies the requirement asreview-notes-export (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6)
ERROR: No matching distribution found for asreview-notes-export

Using ASReview Version 1.1.1. on macOS Ventura 13.1

The extension looks very promising, would love to try it out!
Thanks

Export problems

I had some problems using the notes, when specifying -o as a .csv file
however, without specifying the file extension, it works:
image
Microsoft Windows [Version 10.0.19042.2486]
(c) Microsoft Corporation. All rights reserved.

C:\Users\josien.boetje\OneDrive - Stichting Hogeschool Utrecht\PhD\Study 1 - Systematic Literature Review\d2_Results>asreview notes_export ScreeningRound4_Forward-citation-search.asreview

C:\Users\josien.boetje\OneDrive - Stichting Hogeschool Utrecht\PhD\Study 1 - Systematic Literature Review\d2_Results>asreview notes_export ScreeningRound2.asreview

C:\Users\josien.boetje\OneDrive - Stichting Hogeschool Utrecht\PhD\Study 1 - Systematic Literature Review\d2_Results>

Columns overlap but no suffix specified

This is a great contribution to the ASReview universe and highly wanted by users, see the discussion at asreview/asreview#1220.

When I ran the extension I ran into an issue. To reproduce:

I initiated a project in ASReview, added one note, and exported the project: example-ptsd.zip (The file I used is attached (it needs to be unzipped first).)

When running

asreview notes_export example-ptsd.asreview

I obtained the following warning:

Traceback (most recent call last):
  File "C:\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Python310\Scripts\asreview.exe\__main__.py", line 7, in <module>
  File "C:\Python310\lib\site-packages\asreview\__main__.py", line 78, in main
    entry.load()().execute(sys.argv[2:])
  File "C:\Python310\lib\site-packages\asreviewcontrib\notes_export\entrypoint.py", line 42, in execute
    export_notes(
  File "C:\Python310\lib\site-packages\asreviewcontrib\notes_export\notes_export.py", line 39, in export_notes
    dataset_with_results = dataset.df.join(df.set_index('record_id')[['labeling_order','label','notes']])
  File "C:\Python310\lib\site-packages\pandas\core\frame.py", line 9254, in join
    return self._join_compat(
  File "C:\Python310\lib\site-packages\pandas\core\frame.py", line 9285, in _join_compat
    return merge(
  File "C:\Python310\lib\site-packages\pandas\core\reshape\merge.py", line 122, in merge
    return op.get_result()
  File "C:\Python310\lib\site-packages\pandas\core\reshape\merge.py", line 718, in get_result
    llabels, rlabels = _items_overlap_with_suffix(
  File "C:\Python310\lib\site-packages\pandas\core\reshape\merge.py", line 2313, in _items_overlap_with_suffix
    raise ValueError(f"columns overlap but no suffix specified: {to_rename}")

Add tests

Add tests that will run automatically using Git flow everytime when code is pushed to the main branch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.