If you really want to use this janky code:
$ git clone https://github.com/riscv/riscv-opcodes
$ # You need like a patch to fix extension handling... might submit PR in a bit
$ python3 parse.py rv_* rv64_*
$ yaml2json < instr_dict.yaml > instr_dict.json # Sorry
$ python3 free-space.py