NatLibFi / Annif

Annif is a multi-algorithm automated subject indexing tool for libraries, archives and museums.
https://annif.org
Other
195 stars 41 forks source link

CLI command `list-projects` fields #686

Closed juhoinkinen closed 1 year ago

juhoinkinen commented 1 year ago

Currently the output of annif list-projects is like the following:

Project ID               Project Name                                 Language  Trained
---------------------------------------------------------------------------------------
yso-fi                   YSO suomi (2022-11-02)                       fi        None   
yso-en                   YSO English (2022-11-02)                     en        None   
yso-mllm-fi              YSO MLLM Finnish                             fi        True   
yso-mllm-en              YSO MLLM English                             en        False  

Because vocabularies are now shared between projects (#603) I think it would make sense to show also the vocabulary-id in the output (it is shown by the show-project command).

Also sometimes having the modification timestamp in the output could be helpful.

However, with both new fields the output can seem a bit messy:

Project ID               Project Name                                 Vocab ID  Language Trained  Modification time
---------------------------------------------------------------------------------------------------------------------------
yso-fi                   YSO suomi (2022-11-02)                       yso       fi        None    2022-11-10 11:54:53+00:00
yso-en                   YSO English (2022-11-02)                     yso       en        None    2022-11-10 11:54:53+00:00
yso-mllm-fi              YSO MLLM Finnish                             yso       fi        True    2022-11-10 11:54:53+00:00
yso-mllm-en              YSO MLLM English                             yso       en        False   2022-11-10 11:54:53+00:00

One option would be also to add the Vocab ID field and remove the Trained field, and add an option --full or --long for showing all available fields, i.e. also Access.

osma commented 1 year ago

Would it help if the column widths were chosen dynamically? Now we have to reserve lots of space for the project ID and name, because they could be long, but in most cases aren't.