app question_cli

Internal research tool for question classification and/or answering

10 releases

0.2.4 Aug 5, 2024
0.2.3 Jul 31, 2024
0.1.5 Jul 28, 2024

#1099 in Command line utilities

Download history 256/week @ 2024-07-23 489/week @ 2024-07-30 58/week @ 2024-08-06 3/week @ 2024-08-13 17/week @ 2024-09-10 2/week @ 2024-09-17 19/week @ 2024-09-24 4/week @ 2024-10-01

481 downloads per month

MIT/Apache

21KB
454 lines

README

Purpose

Quick internal command line tool to both classify and/or answer questions.

Requirements

You require a .json file with questions formatted as such:

[
  {
    "question": "Infection with X drug makes you more likely to have infection from the following?",
    "options": [
      "Histoplasma",
      "Escherichia coli",
      "Listeria monocytogenes",
      "HIV",
      "Streptococcus spp."
    ],
    "answer": "HIV"
  },
  {
    "question": "A 43-year-old woman ...  Which one of the following tests is most likely to be diagnostic in this case?",
    "options": [
      "CXR",
      "CBC",
      "ALT",
      "CT Chest",
      "ANA"
    ],
    "answer": "ANA"
  }
]

How to use

Open your command line and run the tool using the format below. For Windows, this is the "Command Prompt" or "PowerShell" app; for MacOS/Linux it is the "Terminal".

question_cli <classify or answer> <path_to_json>

Example:

question_cli answer /home/josh/Documents/question_cli/questions.json

Once running the tool, instructions are provided on how to navigate through each question. In brief, type y or n to classify questions as higher or lower order. If answering, simply type the option #. Navigate through questions with your arrow keys.

A progress bar is at the bottom of the screen to indicate how many questions are left to classify/answer. If text is looking like its being cut off, please either increase the size of the terminal or reduce the text size (ie. Ctrl-).

Enjoy!

Dependencies

~11–18MB
~241K SLoC