DataSeer / dataseer-ml

DataSeer machine-learning service
Apache License 2.0
25 stars 2 forks source link

Count for parent data types #3

Closed kermitt2 closed 4 years ago

kermitt2 commented 4 years ago

In the generated data type json description file, the count of the parent data type are based on the strict number of data type occurrence in the corpus of the data type, not considering its children.

For parent data types having only children occurrences, their count will be 0, for instance Genetic Data:

"label": "Genetic Data",
"count": 0,

while its children data sub-types have many counts.

Since counts are used to order choices in the GUI, it would be better to sum the count of the sub-types at parent data type level.

kermitt2 commented 4 years ago

We have now as required:

"label": "Genetic Data",
"count": 787,